[pacman-dev] [PATCH] add missing open quotation mark in regex

Juergen Hoetzel juergen at archlinux.org
Thu Aug 26 11:14:11 EDT 2010


Signed-off-by: Juergen Hoetzel <juergen at archlinux.org>
---
 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 17fd5de..66e1225 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
-- 
1.7.2.2



More information about the pacman-dev mailing list