From b17751a2d68616adf8a97a7a5e2688c8de06aebd Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 21 Nov 2013 16:17:48 +0100 Subject: [PATCH] bug #2464: do tm delete retry in the host Also does not fail when the file/path does not exist --- src/tm_mad/common/delete | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/tm_mad/common/delete b/src/tm_mad/common/delete index ed2953f573..58fe12ef61 100755 --- a/src/tm_mad/common/delete +++ b/src/tm_mad/common/delete @@ -44,14 +44,27 @@ DST_HOST=`arg_host $DST` log "Deleting $DST_PATH" -delete_file="ssh $DST_HOST \"rm -rf $DST_PATH\"" +delete_file=$(cat <