Skip to content

Commit

Permalink
assemble: fix Split multiple apps and bins by space (#1084)
Browse files Browse the repository at this point in the history
* fix(assemble): split multiple apps and bins by space

* fix(assemble): remove unnecessary trim for export
  • Loading branch information
felixhoffmnn authored Feb 1, 2024
1 parent be3249d commit 0d16008
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions distrobox-assemble
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,23 @@ run_distrobox() (
"${distrobox_path}"/distrobox enter "${name}" -- touch /dev/null

IFS="¤"
for app in ${exported_apps}; do
app="$(echo "${app}" | tr -d '[:space:]')"
"${distrobox_path}"/distrobox enter "${name}" -- distrobox-export --app "${app}"
for apps in ${exported_apps}; do
# Split the string by spaces
IFS=" "
for app in ${apps}; do
# Export the app
"${distrobox_path}"/distrobox enter "${name}" -- distrobox-export --app "${app}"
done
done

IFS="¤"
for bin in ${exported_bins}; do
bin="$(echo "${bin}" | tr -d '[:space:]')"
"${distrobox_path}"/distrobox enter "${name}" -- distrobox-export --bin "${bin}" --export-path "${exported_bins_path}"
for bins in ${exported_bins}; do
# Split the string by spaces
IFS=" "
for bin in ${bins}; do
# Export the bin
"${distrobox_path}"/distrobox enter "${name}" -- distrobox-export --bin "${bin}" --export-path "${exported_bins_path}"
done
done
fi
)
Expand Down

0 comments on commit 0d16008

Please sign in to comment.