test
This commit is contained in:
parent
738765a5f6
commit
d71e249422
@ -6,7 +6,7 @@ mapfile -t array < <(cli -m csv -c 'app chart_release query name,update_availabl
|
||||
[[ -z $array ]] && echo -e "\nThere are no updates available" && return 0 || echo -e "\n${#array[@]} update(s) available"
|
||||
[[ -z $timeout ]] && echo -e "\nDefault Timeout: 500" && timeout=500 || echo -e "\nCustom Timeout: $timeout"
|
||||
[[ "$timeout" -le 120 ]] && echo "Warning: Your timeout is set low and may lead to premature rollbacks or skips"
|
||||
update_limit=4
|
||||
echo "Asynchronous Updates: 1"
|
||||
|
||||
it=0
|
||||
|
||||
|
@ -83,9 +83,27 @@ do
|
||||
;;
|
||||
U)
|
||||
update_all_apps="true"
|
||||
# Check next positional parameter
|
||||
eval nextopt=${!OPTIND}
|
||||
# existing or starting with dash?
|
||||
if [[ -n $nextopt && $nextopt != -* ]] ; then
|
||||
OPTIND=$((OPTIND + 1))
|
||||
update_limit=("$OPTARG")
|
||||
else
|
||||
update_limit=1
|
||||
fi
|
||||
;;
|
||||
u)
|
||||
update_apps="true"
|
||||
# Check next positional parameter
|
||||
eval nextopt=${!OPTIND}
|
||||
# existing or starting with dash?
|
||||
if [[ -n $nextopt && $nextopt != -* ]] ; then
|
||||
OPTIND=$((OPTIND + 1))
|
||||
update_limit=("$OPTARG")
|
||||
else
|
||||
update_limit=1
|
||||
fi
|
||||
;;
|
||||
S)
|
||||
stop_before_update="true"
|
||||
|
Loading…
Reference in New Issue
Block a user