From 28994f7f605c9dab0e239a8362cd84a22c81e3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Font=C3=A1n=20Mui=C3=B1os?= Date: Wed, 15 Apr 2009 13:14:44 +0000 Subject: [PATCH] Fixing bug in nfs tm when moving files (#73) git-svn-id: http://svn.opennebula.org/one/trunk@468 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/tm_mad/nfs/tm_mv.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tm_mad/nfs/tm_mv.sh b/src/tm_mad/nfs/tm_mv.sh index b2941eafb8..9be2dcc247 100755 --- a/src/tm_mad/nfs/tm_mv.sh +++ b/src/tm_mad/nfs/tm_mv.sh @@ -36,13 +36,11 @@ DST_PATH=`arg_path $DST` if [ "$SRC_PATH" == "$DST_PATH" ]; then log "Will not move, source and destination are equal" else - # Is saving a disk image? - echo "$DST_PATH" | egrep -e "^$VAR_LOCATION.+/disk\..+$" - if [ "x$?" == "x0" ]; then + if [ -d "$SRC_PATH" ]; then + log "Will not move, is not saving image" + else log "Moving $SRC_PATH" exec_and_log "mv $SRC_PATH $DST_PATH" - else - log "Will not move, is not saving image" fi fi