Skip to content

Commit

Permalink
assemble: fix possible empty lines, Fix #1514
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Oct 10, 2024
1 parent 922175d commit cbf9f88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions distrobox-assemble
Original file line number Diff line number Diff line change
Expand Up @@ -431,19 +431,28 @@ run_distrobox()
IFS="¤"
args=""
for packages in ${additional_packages}; do
if [ -z "${packages}" ]; then
continue
fi
args="${args} ${packages}"
done
result_command="${result_command} --additional-packages $(sanitize_variable "${args}")"
fi
if [ -n "${volume}" ]; then
IFS="¤"
for vol in ${volume}; do
if [ -z "${vol}" ]; then
continue
fi
result_command="${result_command} --volume $(sanitize_variable "${vol}")"
done
fi
if [ -n "${additional_flags}" ]; then
IFS="¤"
for flag in ${additional_flags}; do
if [ -z "${flag}" ]; then
continue
fi
result_command="${result_command} --additional-flags $(sanitize_variable "${flag}")"
done
fi
Expand Down

0 comments on commit cbf9f88

Please sign in to comment.