Skip to content

Commit 5803091

Browse files
committed
docker_entrypoint: Default to 'bash' if no arguments are provided
1 parent 91ae4a8 commit 5803091

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/docker_entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ echo "$msg - done"
3737

3838
echo ""
3939

40+
# Default to 'bash' if no arguments are provided
41+
args="$@"
42+
if [ -z "$args" ]; then
43+
args="bash"
44+
fi
4045

4146
# Execute command as `aosp` user
4247
export HOME=/home/aosp
43-
exec sudo -u aosp "$@"
48+
exec sudo -u aosp "$args"

0 commit comments

Comments
 (0)