diff --git a/mikrotik/mt_system b/mikrotik/mt_system index fe1f365..ccdd4e5 100644 --- a/mikrotik/mt_system +++ b/mikrotik/mt_system @@ -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" }