Skip to content

Commit

Permalink
create: pass SHELL as env in create so init can initialize custom shells
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Jan 1, 2022
1 parent 8c5b00e commit 56467d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions distrobox-create
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ generate_command() {
#
# Mount also the distrobox-init utility as the container entrypoint.
result_command="${result_command}
--env SHELL=${SHELL:-"/bin/bash"}
--env HOME=${container_user_home}
--volume ${container_user_home}:${container_user_home}:rslave
--volume ${distrobox_entrypoint_path}:/usr/bin/entrypoint:ro
Expand Down
2 changes: 1 addition & 1 deletion distrobox-list
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ IFS='
printf " %-12s | %-25s | %-30s | %-30s\n" "ID" "NAME" "STATUS" "IMAGE"
for container in ${container_list}; do
# Check if the current container has a custom mount point for distrobox.
if [ -z "${container##*/usr/bin/distrobox*}" ]; then
if [ -z "${container##*distrobox*}" ]; then
# Extract the information for the single container to pretty print it
container_id="$(printf "%s" "${container}" | cut -d'|' -f1 | cut -c1-12)"
container_image="$(printf "%s" "${container}" | cut -d'|' -f2)"
Expand Down

0 comments on commit 56467d9

Please sign in to comment.