Skip to content

Commit

Permalink
util (ble/util/assign-array): use ble/util/mapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 12, 2019
1 parent b109b46 commit 6713766
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ble-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@ else
local _ble_local_tmp=$_ble_util_read_stdout_tmp
builtin eval "$2" >| "$_ble_local_tmp"
local _ble_local_ret=$?
local _ble_local_i=0 _ble_local_val _ble_local_arr; _ble_local_arr=()
while builtin read -r _ble_local_val || [[ $_ble_local_val ]]; do
_ble_local_arr[_ble_local_i++]=$_ble_local_val
done < "$_ble_local_tmp"
builtin eval "$1=(\"\${_ble_local_arr[@]}\")"
ble/util/mapfile "$1" < "$_ble_local_tmp"
return "$_ble_local_ret"
}
fi
Expand Down

0 comments on commit 6713766

Please sign in to comment.