summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-01-10 00:58:42 -0500
committerAllan McRae <allan@archlinux.org>2019-01-10 17:03:04 +1000
commit5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84 (patch)
tree457892503f89ae80cb26e9298c338accef54f1e2 /scripts
parent031611ff40bb85e493453913ae808116fa92c3cc (diff)
downloadpacman-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')
-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