Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/executable
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/libmakepkg/executable
parent031611ff40bb85e493453913ae808116fa92c3cc (diff)
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')
-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