]> git.sthu.org Git - shutils.git/commitdiff
Add ssh-withautoadd.sh
authorStefan Huber <shuber@sthu.org>
Fri, 3 Jan 2014 12:54:55 +0000 (13:54 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 3 Jan 2014 12:54:55 +0000 (13:54 +0100)
ssh-withautoadd.sh [new file with mode: 0755]

diff --git a/ssh-withautoadd.sh b/ssh-withautoadd.sh
new file mode 100755 (executable)
index 0000000..c134329
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+ssh-add -l > /dev/null || ssh-add
+ssh "$@"
+