mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
14 lines
261 B
Bash
14 lines
261 B
Bash
#!/bin/sh
|
|
|
|
usessh=${usessh:-yes}
|
|
|
|
if test "$usessh" = "yes" -a -d $HOME/.ssh ; then
|
|
SSH_ASKPASS="/usr/libexec/x11-ssh-askpass"
|
|
if [ -x $SSH_ASKPASS ] ; then
|
|
export SSH_ASKPASS
|
|
ssh-agent > $HOME/.ssh/agent
|
|
. $HOME/.ssh/agent
|
|
ssh-add
|
|
fi
|
|
fi
|
|
|