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>
This commit is contained in:
parent
031611ff40
commit
5d2f7ee6c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue