From fc9002188b588cda1f5362d6d15bd6996c532982 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 12 May 2012 22:15:09 -0400 Subject: pacman-key: use mapfile over read Signed-off-by: Dave Reisner --- scripts/pacman-key.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2