fixes: /usr/bin/pacman-key: line 437: ${1[0]}: bad substitution

Signed-off-by: Dave Reisner <[email protected]>
---
Allan, I'm pretty sure this was your intention. Feel free to correct me if I'm
wrong.


 scripts/pacman-key.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index cb108ac..b478b23 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[0]}"; 
KEYIDS=("${1[@]:1}") ;;
+               -r|--receive)     RECEIVE=1; shift; KEYSERVER=$1; 
KEYIDS=("${@:1}") ;;
                --reload)         RELOAD=1 ;;
                -u|--updatedb)    UPDATEDB=1 ;;
                -v|--verify)      VERIFY=1; shift; SIGNATURE=$1 ;;
-- 
1.7.6


Reply via email to