Skip to content

Commit

Permalink
if no extra argument is provided to /ros_entrypoint.sh fall back to /…
Browse files Browse the repository at this point in the history
…bin/bash
  • Loading branch information
DominikN committed Jan 2, 2024
1 parent 11483f3 commit cbb2d3f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ros_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ elif ! id "$USER" &>/dev/null; then
useradd -ms /bin/bash "$USER"
fi

exec gosu $USER "$@"
# <additional-user-commands>

if [ $# -eq 0 ]; then
exec gosu $USER /bin/bash
else
exec gosu $USER "$@"
fi

0 comments on commit cbb2d3f

Please sign in to comment.