summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/executable/checksum.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-01-10 06:58:42 +0100
committerAllan McRae <allan@archlinux.org>2019-01-10 08:03:04 +0100
commit5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84 (patch)
tree457892503f89ae80cb26e9298c338accef54f1e2 /scripts/libmakepkg/executable/checksum.sh.in
parent031611ff40bb85e493453913ae808116fa92c3cc (diff)
downloadpacman-5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84.tar.gz
pacman-5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84.tar.xz
libmakepkg: simplify splitting command output into array
Use mapfile instead of hacking around read -a with the $IFS. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/executable/checksum.sh.in')
-rw-r--r--scripts/libmakepkg/executable/checksum.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/executable/checksum.sh.in b/scripts/libmakepkg/executable/checksum.sh.in
index 9783d4ee..0a4b0c9e 100644
--- a/scripts/libmakepkg/executable/checksum.sh.in
+++ b/scripts/libmakepkg/executable/checksum.sh.in
@@ -29,7 +29,7 @@ executable_functions+=('executable_checksum')
executable_checksum() {
if (( GENINTEG || ! SKIPCHECKSUMS )); then
local integlist
- IFS=$'\n' read -rd '' -a integlist < <(get_integlist)
+ mapfile -t integlist < <(get_integlist)
local integ
for integ in "${integlist[@]}"; do