summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-27 10:52:05 -0500
committerDan McGee <dan@archlinux.org>2010-08-27 11:04:21 -0500
commita8dcfeccfcd0fc78554e6dad7ae07d53034363e1 (patch)
tree673c0901266107f2886c9332ffd4f83edde4a2e1
parent8d88f0c897e5dd531a2c74dd2bca56db56a3c63d (diff)
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>
-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