Skip to content

Commit 06c1885

Browse files
committed
setup-util: fix eval upgrade not working
upgrade i option, not action
1 parent 11da339 commit 06c1885

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎commands/setup-util‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,13 +3467,11 @@ function setup_util() (
34673467
if [[ ${#EVAL[@]} -ne 0 ]]; then
34683468
scripts+=("${EVAL[@]}")
34693469
fi
3470-
if [[ ${#EVAL_INSTALL[@]} -ne 0 && $option_action == 'install' ]]; then
3471-
scripts+=("${EVAL_INSTALL[@]}")
3472-
fi
3473-
if [[ ${#EVAL_UPGRADE[@]} -ne 0 && $option_action == 'upgrade' ]]; then
3470+
if [[ ${#EVAL_UPGRADE[@]} -ne 0 && $option_upgrade == 'yes' ]]; then
34743471
scripts+=("${EVAL_UPGRADE[@]}")
3475-
fi
3476-
if [[ ${#EVAL_UNINSTALL[@]} -ne 0 && $option_action == 'uninstall' ]]; then
3472+
elif [[ ${#EVAL_INSTALL[@]} -ne 0 && $option_action == 'install' ]]; then
3473+
scripts+=("${EVAL_INSTALL[@]}")
3474+
elif [[ ${#EVAL_UNINSTALL[@]} -ne 0 && $option_action == 'uninstall' ]]; then
34773475
scripts+=("${EVAL_UNINSTALL[@]}")
34783476
fi
34793477

0 commit comments

Comments
 (0)