update
This commit is contained in:
parent
95ad4c7c5f
commit
50c21d3233
Binary file not shown.
Before Width: | Height: | Size: 7.9 MiB After Width: | Height: | Size: 11 MiB |
Binary file not shown.
Before Width: | Height: | Size: 10 MiB |
@ -2,6 +2,14 @@
|
||||
# `$HOME/bin/start-agent`
|
||||
SSH_ENV="$HOME/.ssh/agent-environment"
|
||||
|
||||
function escapeStr {
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: escapeStr <string>"
|
||||
return 1
|
||||
fi
|
||||
echo $1 | sed -r 's/([\$"])/\\\1/g'
|
||||
}
|
||||
|
||||
function start_agent {
|
||||
echo "Initialising new SSH agent..."
|
||||
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
|
||||
|
Loading…
Reference in New Issue
Block a user