Skip to content

Commit

Permalink
fix(dx): improve distrobox-enter wrapper (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Nov 30, 2023
1 parent 8fb1dfa commit aac5262
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 aac5262

Please sign in to comment.