summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/makepkg.sh.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 4e7b2e6c..bca71c70 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -217,12 +217,10 @@ missing_source_file() {
run_pacman() {
local cmd
- if [[ $1 != -@(T|Q)*([[:alpha:]]) ]]; then
- cmd=("$PACMAN_PATH" "${PACMAN_OPTS[@]}" "$@")
- else
+ if [[ $1 = -@(T|Q)*([[:alpha:]]) ]]; then
cmd=("$PACMAN_PATH" "$@")
- fi
- if [[ $1 != -@(T|Q)*([[:alpha:]]) ]]; then
+ else
+ cmd=("$PACMAN_PATH" "${PACMAN_OPTS[@]}" "$@")
if type -p sudo >/dev/null; then
cmd=(sudo "${cmd[@]}")
else