Utterly stupid to exit with error on invalid host. It executes actual ssh with

total parameters now.
This commit is contained in:
Nilesh Govindrajan 2013-04-19 21:32:14 +05:30
commit c2d81f9a51

View file

@ -40,14 +40,14 @@ function ssh() {
fi
local param=$1
shift
local host=$ssh_hosts[$param]
if [ -z "$host" ]; then
echo INVALID HOST
return 1
$actual_ssh $*
fi
shift
$actual_ssh $(echo $ssh_hosts[$param]) $* # $() to circumvent ssh from b0rking if options are present in map
}