Skip to content

Commit

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

Expand Down

0 comments on commit e8f13a9

Please sign in to comment.