mirror of
https://github.com/kylemanna/docker-aosp
synced 2025-06-06 23:46:18 +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:
parent
ecca921d2e
commit
edfe0db562
@ -44,7 +44,7 @@ if [ $uid -ne "0" ]; then
|
||||
AOSP_HOST_ID_ARGS="-e USER_ID=$uid -e GROUP_ID=$(id -g)"
|
||||
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"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user