From edfe0db562ab9c8dfbca9b231c67b609fb7487cd Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Sun, 1 Jan 2017 23:00:59 -0800 Subject: [PATCH] aosp: Check that SSH_AUTH_SOCK points to a socket * Only setup the volume mount if it points to a socket. * Resolves #14 --- utils/aosp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aosp b/utils/aosp index fd892e5..056c6da 100755 --- a/utils/aosp +++ b/utils/aosp @@ -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