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