From 65854c8da633a927e6f29a2c05d8263deb2df488 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sat, 22 Jul 2023 23:24:29 +0200 Subject: [PATCH] fix(updates): make update all function also update system again Signed-off-by: Dominik Willner --- scripts/ui/update_menu.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/ui/update_menu.sh b/scripts/ui/update_menu.sh index caa5e64..740caf4 100755 --- a/scripts/ui/update_menu.sh +++ b/scripts/ui/update_menu.sh @@ -139,8 +139,14 @@ function update_all() { read -p "${cyan}###### Do you want to proceed? (Y/n):${white} " yn case "${yn}" in Y|y|Yes|yes|"") - for app in "${update_arr[@]}"; do - local update="update_${app}" + local component + local update + for component in "${update_arr[@]}"; do + if [[ ${component} == "system" ]]; then + update="upgrade_system_packages" + else + update="update_${component}" + fi #shellcheck disable=SC2250 $update done