mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Feature #3574: Make sure we are deleting a file
This commit is contained in:
parent
41f5099814
commit
ce2c08dd5b
@ -59,7 +59,7 @@ BASE_PATH="${XPATH_ELEMENTS[i++]}"
|
||||
if [ -n "$BRIDGE_LIST" ]; then
|
||||
DST_HOST=`get_destination_host $ID`
|
||||
|
||||
ssh_exec_and_log "$DST_HOST" "rm -f $SRC" \
|
||||
ssh_exec_and_log "$DST_HOST" "[ -f $SRC ] && rm -f $SRC" \
|
||||
"Error deleting $SRC in $DST_HOST"
|
||||
else
|
||||
BASENAME_SRC=`basename "${SRC##$REMOTE_RM_CMD}"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user