diff options
author | filip <“filip.rabiega@gmail.com”> | 2025-10-10 19:25:25 +0200 |
---|---|---|
committer | filip <“filip.rabiega@gmail.com”> | 2025-10-10 19:25:25 +0200 |
commit | 7f6189dcbed755af34e222237b8cfa8b1f903696 (patch) | |
tree | 142874823cfcf5df3e2b5a54d48b23ea8e2a6c03 /decperc | |
parent | 807de46d3a3cbef9a3c3c104f6db87b142e6eed5 (diff) | |
download | chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.gz chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.bz2 chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.zip |
used shfmt -s
Diffstat (limited to 'decperc')
-rwxr-xr-x | decperc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,4 +27,4 @@ perc_into_dec() { echo "$1" | grep -qE '^(-?[0-9]+\.[0-9]+|-?[0-9]|\.[0-9]+|-?[0-9]+\.[0-9]+%|-?[0-9]+%|\.[0-9]+%)$' && len=${#1} && - [[ "${1:len-1:1}" == "%" ]] && perc_into_dec "$1" || dec_into_perc "$1" + [[ ${1:len-1:1} == "%" ]] && perc_into_dec "$1" || dec_into_perc "$1" |