Skip to content

Commit

Permalink
Fallback to /bin/bash if shell extraction failed
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Apr 18, 2024
1 parent e332f78 commit 59423b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes.container/usr/bin/host-shell
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "$(basename "${0}")" != "host-shell" ]; then
host_command="$(basename "${0}")"
else
host_shell=$(grep "^$USER" /run/host/etc/passwd | awk -F: '{print $NF}')
host_command="${1:-$host_shell}"
host_command="${1:-${$host_shell:-/bin/bash}}"
shift
fi

Expand Down

0 comments on commit 59423b9

Please sign in to comment.