Update common.sh
This commit is contained in:
parent
5b674bcaf7
commit
4dfcda7827
|
@ -205,12 +205,12 @@ getListOrMenuOptions() {
|
||||||
if [ $notFound = true ]; then
|
if [ $notFound = true ]; then
|
||||||
[[ "${item}" == "VALUES" ]] && ((i+=3))
|
[[ "${item}" == "VALUES" ]] && ((i+=3))
|
||||||
[[ "${item}" == +([0-9]) ]] && ((i++))
|
[[ "${item}" == +([0-9]) ]] && ((i++))
|
||||||
[ $i -le 3 ] && continue
|
[ "$i" -le 3 ] && continue
|
||||||
fi
|
fi
|
||||||
notFound=false
|
notFound=false
|
||||||
if [ $((j % 3)) -eq 0 ]; then
|
if [ $((j % 3)) -eq 0 ]; then
|
||||||
strLen=${#item}
|
strLen=${#item}
|
||||||
[ $strLen -gt $maxLen ] && maxLen=$strLen
|
[ "$strLen" -gt $maxLen ] && maxLen=$strLen
|
||||||
((argsQty++))
|
((argsQty++))
|
||||||
[ $isList = false ] && ((j++))
|
[ $isList = false ] && ((j++))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue