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
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ fi
if [ "$testconnect" == "yes" ]; then
debug "ssh $sshoptions -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1'"
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
fatal "Can't connect to $desthost as $destuser."
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment