fix: get_value() regex

pull/43/head
aristocratos 2020-04-26 13:13:10 +02:00
parent e6b956a155
commit 0d72829907
1 changed files with 1 additions and 1 deletions

View File

@ -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