summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-27 17:52:05 +0200
committerDan McGee <dan@archlinux.org>2010-08-27 18:04:21 +0200
commita8dcfeccfcd0fc78554e6dad7ae07d53034363e1 (patch)
tree673c0901266107f2886c9332ffd4f83edde4a2e1 /scripts
parent8d88f0c897e5dd531a2c74dd2bca56db56a3c63d (diff)
downloadpacman-a8dcfeccfcd0fc78554e6dad7ae07d53034363e1.tar.gz
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')
-rw-r--r--scripts/makepkg.sh.in2
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