fix(updates): make update all function also update system again

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus
2023-07-22 23:24:29 +02:00
parent 5985646633
commit 65854c8da6

View File

@@ -139,8 +139,14 @@ function update_all() {
read -p "${cyan}###### Do you want to proceed? (Y/n):${white} " yn read -p "${cyan}###### Do you want to proceed? (Y/n):${white} " yn
case "${yn}" in case "${yn}" in
Y|y|Yes|yes|"") Y|y|Yes|yes|"")
for app in "${update_arr[@]}"; do local component
local update="update_${app}" local update
for component in "${update_arr[@]}"; do
if [[ ${component} == "system" ]]; then
update="upgrade_system_packages"
else
update="update_${component}"
fi
#shellcheck disable=SC2250 #shellcheck disable=SC2250
$update $update
done done