fix ssh_make_path function

Check against exec rc from the ssh session.
(cherry picked from commit a548468fff)
This commit is contained in:
Anton Todorov authored and Ruben S. Montero committed 2015-12-30 17:20:12 +01:00
1 parent 84d1475d33
commit 8e362f28d0
1 file changed
+1 -1
+1 -1
View File
@@ -453,7 +453,7 @@ fi
EOF`
SSH_EXEC_RC=$?
if [ $? -ne 0 ]; then
if [ $SSH_EXEC_RC -ne 0 ]; then
error_message "Error creating directory $2 at $1: $SSH_EXEC_ERR"
exit $SSH_EXEC_RC