Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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