summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-07-20 14:19:53 +1000
committerDan McGee <dan@archlinux.org>2011-07-27 12:47:37 -0500
commitd9875c5e6cbc0b59a4ba7c56e974da3d138f235d (patch)
tree12c98df5c875e08d12804854ce4f0904f30df8a9
parent49d9426b6a3e6a019a0973ec73b0ff6cf402fa89 (diff)
downloadpacman-d9875c5e6cbc0b59a4ba7c56e974da3d138f235d.tar.xz
pacman-key: fix syntax error in -r arg parsing
Previous fix did not work... Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/pacman-key.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 5cb5bd51..61b846b1 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -310,7 +310,7 @@ while true; do
--gpgdir) shift; PACMAN_KEYRING_DIR=$1 ;;
--init) INIT=1 ;;
-l|--list) LIST=1 ;;
- -r|--receive) RECEIVE=1; shift; KEYSERVER=$1; KEYIDS=("${@:1}") ;;
+ -r|--receive) RECEIVE=1; shift; TMP=($1); KEYSERVER=${TMP[0]}; KEYIDS=(${TMP[@]:1}); unset TMP;;
--reload) RELOAD=1 ;;
-u|--updatedb) UPDATEDB=1 ;;
-v|--verify) VERIFY=1; shift; SIGNATURE=$1 ;;