diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-12 22:15:09 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-20 17:39:21 -0500 |
commit | fc9002188b588cda1f5362d6d15bd6996c532982 (patch) | |
tree | b4a50aa3f833588e88261744dcfc8b6a1dfd5d5b /scripts | |
parent | 9d3e59e311a863e140699dd2eaec7c0b0bf632f4 (diff) | |
download | pacman-fc9002188b588cda1f5362d6d15bd6996c532982.tar.xz |
pacman-key: use mapfile over read
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | 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 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 |