mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
fix ssh_make_path function
Check against exec rc from the ssh session.
(cherry picked from commit a548468fff)
This commit is contained in:
1 parent
84d1475d33
commit
8e362f28d0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user