Skip to content

Commit

Permalink
Fix devel flag being ignored when the option -d/--devel is not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Mar 21, 2024
1 parent 14752ea commit 72d863e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ list_packages() {

if [ -n "${aur_helper}" ]; then
if [ -z "${no_version}" ]; then
aur_packages=$("${aur_helper}" -Qua "${dev_flag}")
aur_packages=$("${aur_helper}" "${devel_flag[@]}" -Qua)
else
aur_packages=$("${aur_helper}" -Qua "${dev_flag}" | awk '{print $1}')
aur_packages=$("${aur_helper}" "${devel_flag[@]}" -Qua | awk '{print $1}')
fi
fi

Expand Down Expand Up @@ -375,7 +375,7 @@ update() {
echo
main_msg "$(eval_gettext "Updating AUR Packages...\n")"

if ! "${aur_helper}" -Syu "${dev_flag}"; then
if ! "${aur_helper}" "${devel_flag[@]}" -Syu; then
icon_updates_available
echo
error_msg "$(eval_gettext "An error has occurred during the update process\nThe update has been aborted\n")" && quit_msg
Expand Down Expand Up @@ -629,7 +629,7 @@ case "${option}" in
full_upgrade
;;
-d|--devel)
dev_flag="--devel"
devel_flag+=("--devel")
full_upgrade
;;
-c|--check)
Expand Down Expand Up @@ -657,3 +657,4 @@ case "${option}" in
invalid_option
;;
esac

0 comments on commit 72d863e

Please sign in to comment.