mirror of
https://github.com/kylemanna/docker-aosp
synced 2025-06-06 23:46:18 +00:00
docker_entrypoint: Default to 'bash' if no arguments are provided
This commit is contained in:
parent
91ae4a8cdc
commit
a5daaab9ae
@ -37,7 +37,12 @@ echo "$msg - done"
|
||||
|
||||
echo ""
|
||||
|
||||
# Default to 'bash' if no arguments are provided
|
||||
args="$@"
|
||||
if [ -z "$args" ]; then
|
||||
args="bash"
|
||||
fi
|
||||
|
||||
# Execute command as `aosp` user
|
||||
export HOME=/home/aosp
|
||||
exec sudo -u aosp "$@"
|
||||
exec sudo -u aosp $args
|
||||
|
Loading…
x
Reference in New Issue
Block a user