1
0
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:
Jaime Melis 2015-02-23 18:48:33 +01:00
parent 41f5099814
commit ce2c08dd5b

View File

@ -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}"`