1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-15 13:55:09 -05:00

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>
This commit is contained in:
Dan McGee 2010-08-27 10:52:05 -05:00
parent 8d88f0c897
commit a8dcfeccfc

View File

@ -372,7 +372,7 @@ download_file() {
run_pacman() { run_pacman() {
local cmd local cmd
printf -v cmd "%q " "$PACMAN" $PACMAN_OPTS "$@" printf -v cmd "%q " "$PACMAN" $PACMAN_OPTS "$@"
if (( ! ASROOT )) && [[ ! $1 =~ ^-(T|Qq)$" ]]; then if (( ! ASROOT )) && [[ ! $1 =~ ^-(T|Qq)$ ]]; then
if [ "$(type -p sudo)" ]; then if [ "$(type -p sudo)" ]; then
cmd="sudo $cmd" cmd="sudo $cmd"
else else