1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2025-06-07 16:06:17 +00:00

docker_entrypoint: Default to 'bash' if no arguments are provided

This commit is contained in:
Jean-Christophe Fillion-Robin 2016-04-20 13:10:30 -04:00
parent 91ae4a8cdc
commit a5daaab9ae

View File

@ -37,7 +37,12 @@ echo "$msg - done"
echo "" echo ""
# Default to 'bash' if no arguments are provided
args="$@"
if [ -z "$args" ]; then
args="bash"
fi
# Execute command as `aosp` user # Execute command as `aosp` user
export HOME=/home/aosp export HOME=/home/aosp
exec sudo -u aosp "$@" exec sudo -u aosp $args