Skip to content

Commit

Permalink
assemble: Use read instead of cat (89luca89#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck authored and mrnerdhair committed Feb 2, 2024
1 parent 374184e commit b3b1da0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions distrobox-assemble
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,7 @@ parse_file() (
file="${1}"
name=""

IFS='
'
# shellcheck disable=SC2013
for line in $(cat "${file}"); do
while IFS="" read -r line || [ -n "$line" ]; do
if [ -z "${line}" ]; then
# blank line, skip
continue
Expand Down Expand Up @@ -473,7 +470,7 @@ parse_file() (
fi
echo "${key}=${value}" >> "${tmpfile}"
fi
done
done < "${file}"
# # Execute now one last time for the last block
run_distrobox "${name}"
)
Expand Down

0 comments on commit b3b1da0

Please sign in to comment.