Skip to content

Commit

Permalink
Merge pull request #11 from YoeDistro/feature-fixreadline
Browse files Browse the repository at this point in the history
fix readline message if ssh-agent not configured
  • Loading branch information
kraj authored Oct 2, 2018
2 parents 59c6846 + 5fa91d9 commit bafdb50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,18 @@ dkr() {
CMD="/bin/bash"
fi

SSH_AUTH_DIR=~/

if [ -n "$SSH_AUTH_SOCK" ]; then
SSH_AUTH_DIR=$(readlink -f $SSH_AUTH_SOCK)
fi

docker run --rm -it \
-v $(pwd):$(pwd) \
-v ~/.ssh:/home/build/.ssh \
-v ~/.gitconfig:/home/build/.gitconfig \
-v /stash/downloads:/stash/downloads \
-v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
-v $SSH_AUTH_DIR:/ssh-agent \
-e SSH_AUTH_SOCK=/ssh-agent \
-e MACHINE=$MACHINE \
--user $UID:$GID \
Expand Down

0 comments on commit bafdb50

Please sign in to comment.