Base 10 bugfix for bug issue #233

This commit is contained in:
mag37 2025-11-01 08:56:12 +01:00
parent 81a6a3dcdd
commit d9da4e5998

View file

@ -216,6 +216,7 @@ choosecontainers() {
else
ChoiceClean=${Choice//[,.:;]/ }
for CC in $ChoiceClean; do
CC=$((10#$CC)) # Base 10 interpretation to strip leading zeroes
if [[ "$CC" -lt 1 || "$CC" -gt $UpdCount ]]; then # Reset choice if out of bounds
echo "Number not in list: $CC"; unset ChoiceClean; break 1
else