summaryrefslogtreecommitdiff
path: root/etc/functions/check_ssh
blob: 26ee9fabe1637dc061a5c49ce543c729d56edae1 (plain)
1
2
3
4
5
6
## vim:ft=zsh
if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] {
	return 0
} else {
	return 1
}