From 5d2f7ee6c376e59ccbd8b6f9a5355cac358f0e84 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 10 Jan 2019 00:58:42 -0500 Subject: libmakepkg: simplify splitting command output into array Use mapfile instead of hacking around read -a with the $IFS. Signed-off-by: Eli Schwartz Signed-off-by: Allan McRae --- scripts/libmakepkg/executable/checksum.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2