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

aosp: Check that SSH_AUTH_SOCK points to a socket

* Only setup the volume mount if it points to a socket.
* Resolves #14
This commit is contained in:
Kyle Manna 2017-01-01 23:00:59 -08:00
parent ecca921d2e
commit edfe0db562

View File

@ -44,7 +44,7 @@ if [ $uid -ne "0" ]; then
AOSP_HOST_ID_ARGS="-e USER_ID=$uid -e GROUP_ID=$(id -g)" AOSP_HOST_ID_ARGS="-e USER_ID=$uid -e GROUP_ID=$(id -g)"
fi fi
if [ -n "$SSH_AUTH_SOCK" ]; then if [ -S "$SSH_AUTH_SOCK" ]; then
SSH_AUTH_ARGS="-v $SSH_AUTH_SOCK:/tmp/ssh_auth -e SSH_AUTH_SOCK=/tmp/ssh_auth" SSH_AUTH_ARGS="-v $SSH_AUTH_SOCK:/tmp/ssh_auth -e SSH_AUTH_SOCK=/tmp/ssh_auth"
fi fi