mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 02:54:28 +05:00
fix(updates): make update all function also update system again
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user