chore(source-ssh-agent): don't attempt to create ~/.local dir again if exists

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-07-04 14:23:15 +00:00
parent a92c09df5d
commit 595745692b
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ fi
if echo $OSTYPE | grep -qE "^linux-android.*"; then
export SSH_AUTH_SOCK=$PREFIX/tmp/ssh-agent
else
mkdir ~/.local>> /dev/null
if [ ! -d "$HOME/.local" ]; then
mkdir ~/.local
fi
export SSH_AUTH_SOCK="$HOME/.local/ssh-agent"
fi