From 6c23864e0e2228e5f04cbdcf2e932765d664fbed Mon Sep 17 00:00:00 2001 From: Matthias Puchstein Date: Wed, 21 May 2025 04:04:34 +0200 Subject: [PATCH] sanitized apostrophes --- scripts/alhp-pacman-hook.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/alhp-pacman-hook.sh b/scripts/alhp-pacman-hook.sh index 497ff00..f35619b 100644 --- a/scripts/alhp-pacman-hook.sh +++ b/scripts/alhp-pacman-hook.sh @@ -1,13 +1,13 @@ #!/usr/bin/bash -ALHP_SCRIPT="/usr/local/bin/alhp-check.sh" +ALHP_SCRIPT='/usr/local/bin/alhp-check.sh' building_pkgs=() if [[ $# -gt 0 ]]; then - for pkg in "$@"; do - result=$($ALHP_SCRIPT --check-pkg "$pkg" -j) - if [[ "$result" != "[]" ]]; then - building_pkgs+=("$pkg") + for pkg in $@; do + result=$($ALHP_SCRIPT --check-pkg $pkg -j) + if [[ $result != [] ]]; then + building_pkgs+=($pkg) fi done else @@ -16,7 +16,7 @@ fi if (( ${#building_pkgs[@]} > 0 )); then echo "WARNING: The following packages are currently building or queued on ALHP:" - for p in "${building_pkgs[@]}"; do + for p in ${building_pkgs[@]}; do echo " - $p" done # Uncomment to abort pacman transaction