summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-12 22:15:09 -0400
committerDan McGee <dan@archlinux.org>2012-05-20 17:39:21 -0500
commitfc9002188b588cda1f5362d6d15bd6996c532982 (patch)
treeb4a50aa3f833588e88261744dcfc8b6a1dfd5d5b
parent9d3e59e311a863e140699dd2eaec7c0b0bf632f4 (diff)
downloadpacman-fc9002188b588cda1f5362d6d15bd6996c532982.tar.xz
pacman-key: use mapfile over read
Signed-off-by: Dave Reisner <dreisner@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 e2e89803..fb790f6e 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -318,7 +318,7 @@ populate_keyring() {
local -A revoked_ids
for keyring in "${KEYRINGIDS[@]}"; do
if [[ -f "${KEYRING_IMPORT_DIR}/${keyring}-revoked" ]]; then
- IFS=$'\n' read -r -d '' -a keys < "${KEYRING_IMPORT_DIR}/${keyring}-revoked"
+ mapfile -t keys < "${KEYRING_IMPORT_DIR}/${keyring}-revoked"
while IFS=: read _ _ _ _ key_id _; do
if [[ -n $key_id ]]; then
# Mark this key to be disabled