diff options
author | Xyne <xyne@archlinux.ca> | 2016-02-20 07:02:31 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-02-26 06:18:43 +0100 |
commit | 8ff03868a37b1f9c447784ae2fd639a49e426399 (patch) | |
tree | c0d2f3d5ce2e6c8beca7e6237ee269177cff84d4 /scripts | |
parent | 1a29744d0da8aa945b96b234574e0d5c80f13b62 (diff) | |
download | pacman-8ff03868a37b1f9c447784ae2fd639a49e426399.tar.gz pacman-8ff03868a37b1f9c447784ae2fd639a49e426399.tar.xz |
makepkg: Turn PACMAN_OPTS into an array
Avoid potential word expansion with future inclusions
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 5b4811f1..2efcc985 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -87,7 +87,7 @@ SPLITPKG=0 SOURCEONLY=0 VERIFYSOURCE=0 -PACMAN_OPTS= +PACMAN_OPTS=() shopt -s extglob @@ -219,7 +219,7 @@ source_has_signatures() { run_pacman() { local cmd if [[ $1 != -@(T|Qq) ]]; then - cmd=("$PACMAN_PATH" $PACMAN_OPTS "$@") + cmd=("$PACMAN_PATH" "${PACMAN_OPTS[@]}" "$@") else cmd=("$PACMAN_PATH" "$@") fi @@ -1780,8 +1780,8 @@ while true; do # Pacman Options --asdeps) ASDEPS=1;; --needed) NEEDED=1;; - --noconfirm) PACMAN_OPTS+=" --noconfirm" ;; - --noprogressbar) PACMAN_OPTS+=" --noprogressbar" ;; + --noconfirm) PACMAN_OPTS+=("--noconfirm") ;; + --noprogressbar) PACMAN_OPTS+=("--noprogressbar") ;; # Makepkg Options --allsource) SOURCEONLY=2 ;; @@ -1800,7 +1800,7 @@ while true; do -i|--install) INSTALL=1 ;; --key) shift; GPGKEY=$1 ;; -L|--log) LOGGING=1 ;; - -m|--nocolor) USE_COLOR='n'; PACMAN_OPTS+=" --color never" ;; + -m|--nocolor) USE_COLOR='n'; PACMAN_OPTS+=("--color never") ;; --noarchive) NOARCHIVE=1 ;; --nocheck) RUN_CHECK='n' ;; --noprepare) RUN_PREPARE='n' ;; |