This commit is contained in:
Michael Grote 2021-09-21 20:48:02 +02:00
parent 71d31d22d8
commit e3fa929cd7

View file

@ -47,7 +47,7 @@ function get_name {
function get_cpu_count {
while read -r line; do
if echo $line | grep 'cpu-count' > /dev/null; then
anzahl_cpu=$(echo $line grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]')
anzahl_cpu=$(echo $line | grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]')
fi
done <<< "$data"
}