diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/check_ssh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/functions/check_ssh b/etc/functions/check_ssh new file mode 100644 index 0000000..26ee9fa --- /dev/null +++ b/etc/functions/check_ssh @@ -0,0 +1,6 @@ +## vim:ft=zsh +if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { + return 0 +} else { + return 1 +} |