diff --git a/src/tm_mad/ssh/mv b/src/tm_mad/ssh/mv index 4b4aa3bb6d..e4fdd776b9 100755 --- a/src/tm_mad/ssh/mv +++ b/src/tm_mad/ssh/mv @@ -60,7 +60,10 @@ if [ `is_disk $DST_PATH` -eq 1 ]; then exit 0 fi -if [ "$SRC" == "$DST" ]; then +DST_INODE=$(ssh "$DST_HOST" "ls -d -i \"$DST_DIR\" | awk '{print \$1}'") +SRC_INODE=$(ls -d -i "$SRC_DIR" | awk '{print $1}') + +if [ "$SRC_INODE" = "$DST_INODE" ]; then log "Not moving $SRC to $DST, they are the same path" exit 0 fi