diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-01-10 00:58:42 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-10 17:03:04 +1000 |
commit | 5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84 (patch) | |
tree | 457892503f89ae80cb26e9298c338accef54f1e2 /scripts | |
parent | 031611ff40bb85e493453913ae808116fa92c3cc (diff) | |
download | 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')
-rw-r--r-- | scripts/libmakepkg/executable/checksum.sh.in | 2 |
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 |