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:
parent
91ae4a8cdc
commit
a5daaab9ae
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user