Skip to content

Commit

Permalink
fix(dx): improve distrobox-enter wrapper (ublue-os#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored and b- committed Dec 9, 2023
1 parent f9efa81 commit 89aeb52
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dx/usr/bin/bluefinbox-enter
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ if [ "$container_exists" -eq 0 ]; then
# No need to assemble, enjoy your stay
exec distrobox enter "${container_name}"
else
# We don't have the container so we assemble it first. With distrobox version 1.5.0.2
# or below we need to assemble all the entries that occur in the `distrobox.ini` manifest.
# In future versions of distrobox we will be able to specify `--name $container_name` to
# only assemble the box we want to enter.
distrobox assemble create --replace --file /etc/distrobox/distrobox.ini
# We don't have the container so we assemble it first.
distrobox assemble create --name "${container_name}" --replace --file /etc/distrobox/distrobox.ini

# All done, good to go
exec distrobox enter "${container_name}"
Expand Down

0 comments on commit 89aeb52

Please sign in to comment.