Permalink
Browse files

Merge pull request #16 from jenius/master

Add port option
  • Loading branch information...
2 parents 38c7c2a + 7a776e6 commit f4ec165f9bb6a88b9cf85d447f519f1af235a0d6 @tj tj committed Mar 16, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/deploy
View
@@ -112,10 +112,12 @@ ssh_command() {
local url="`config_get user`@`config_get host`"
local key="`config_get key`"
local forward_agent="`config_get forward-agent`"
+ local port="`config_get port`"
test -n "$forward_agent" && local agent="-A"
test -n "$key" && local identity="-i $key"
- echo "ssh $agent $identity $url"
+ test -n "$port" && local port="-p $port"
+ echo "ssh $agent $port $identity $url"
}
#

0 comments on commit f4ec165

Please sign in to comment.