mirror of https://github.com/aristocratos/bashtop
fix: get_value() regex
parent
e6b956a155
commit
0d72829907
2
bashtop
2
bashtop
|
@ -750,7 +750,7 @@ get_value() { #? Get a value from a file, variable or array by searching for a n
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $int && $found =~ [.|,] ]]; then
|
if [[ -n $int && $found =~ [.,] ]]; then
|
||||||
found="${found/,/.}"
|
found="${found/,/.}"
|
||||||
printf -v found "%.0f" "${found}"
|
printf -v found "%.0f" "${found}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue