diff options
author | Dan McGee <dan@archlinux.org> | 2010-08-27 10:52:05 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-27 11:04:21 -0500 |
commit | a8dcfeccfcd0fc78554e6dad7ae07d53034363e1 (patch) | |
tree | 673c0901266107f2886c9332ffd4f83edde4a2e1 /scripts/makepkg.sh.in | |
parent | 8d88f0c897e5dd531a2c74dd2bca56db56a3c63d (diff) | |
download | pacman-a8dcfeccfcd0fc78554e6dad7ae07d53034363e1.tar.xz |
makepkg: remove trailing quote mark in regex
Regular expressions in bash should not be quoted. Glad this was in the
documentation and I didn't have to go to #bash to ask...
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 17fd5de7..dc720caa 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -372,7 +372,7 @@ download_file() { run_pacman() { local cmd printf -v cmd "%q " "$PACMAN" $PACMAN_OPTS "$@" - if (( ! ASROOT )) && [[ ! $1 =~ ^-(T|Qq)$" ]]; then + if (( ! ASROOT )) && [[ ! $1 =~ ^-(T|Qq)$ ]]; then if [ "$(type -p sudo)" ]; then cmd="sudo $cmd" else |