mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-08 01:42:44 +01:00
Base 10 bugfix for bug issue #233
This commit is contained in:
parent
81a6a3dcdd
commit
d9da4e5998
1 changed files with 1 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ choosecontainers() {
|
||||||
else
|
else
|
||||||
ChoiceClean=${Choice//[,.:;]/ }
|
ChoiceClean=${Choice//[,.:;]/ }
|
||||||
for CC in $ChoiceClean; do
|
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
|
if [[ "$CC" -lt 1 || "$CC" -gt $UpdCount ]]; then # Reset choice if out of bounds
|
||||||
echo "Number not in list: $CC"; unset ChoiceClean; break 1
|
echo "Number not in list: $CC"; unset ChoiceClean; break 1
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue