Skip to content

Commit

Permalink
Fix another bug
Browse files Browse the repository at this point in the history
acu apps wont install more than one package
  • Loading branch information
kwankiu committed Aug 4, 2024
1 parent a1adbd8 commit a467d6d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions acu
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,7 @@ install_pkg() {
colorecho "$THEME" "INFO $NC | Synchronizing package databases ..."
sudo pacman -Sy > /dev/null
fi
local i
for ((i=0; i<${#selection[@]}; i++)); do
local selection_base=$(basename ${selection[i]})
colorecho "$THEME" "INFO $NC | Looking for package: $selection_base"
Expand Down Expand Up @@ -2153,13 +2154,18 @@ install_pkg() {
ipkg+=" ${package[j+1]#"(fallback)"}"
fallback=1
fi
# Install Package by calling a nested install_pkg
# Needs to unset some variables to create a clean environment
# Install Package
# Unset some variables to create a clean environment
skip_apps=1
no_sync=1
unset use_pm
# Backup var selection as we have to overwrite var selection temporarily
local iselection=("${selection[@]}")
# Install Package by calling a nested install_pkg
selection=(${ipkg})
install_pkg
# Restore var selection
selection=("${iselection[@]}")
# Unset package variables for next package
unset fallback
unset needed
Expand Down

0 comments on commit a467d6d

Please sign in to comment.