Skip to content
Snippets Groups Projects
Commit bfe530dc authored by intrigeri's avatar intrigeri
Browse files

Removed an unnecessary check in dup handler.

parent 88d1f719
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ fi ...@@ -62,7 +62,7 @@ fi
if [ "$testconnect" == "yes" ]; then if [ "$testconnect" == "yes" ]; then
debug "ssh $sshoptions -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1'" debug "ssh $sshoptions -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1'"
if [ ! $test ]; then if [ ! $test ]; then
result=`ssh $sshoptions -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1' 2>&1` result=`ssh $sshoptions -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1'`
if [ "$result" != "1" ]; then if [ "$result" != "1" ]; then
fatal "Can't connect to $desthost as $destuser." fatal "Can't connect to $desthost as $destuser."
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment