Skip to content

Commit

Permalink
M #-: fixed incorrect bash syntax (#4991)
Browse files Browse the repository at this point in the history
added white space to fix incorrect syntax

(cherry picked from commit 6e6c710)
  • Loading branch information
none0nfg authored and rsmontero committed Jul 21, 2020
1 parent 1c4d5b1 commit 6eebd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tm_mad/ssh/mv
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi
DST_INODE=$(timeout 10 ssh "$DST_HOST" "ls -d -i \"$DST_DIR\" | awk '{print \$1}'")
SRC_INODE=$(timeout 10 ssh "$SRC_HOST" "ls -d -i \"$SRC_DIR\" | awk '{print \$1}'")

if [ -n "$SRC_INODE"] && [ -n "$DST_INODE" ] && [ "$SRC_INODE" = "$DST_INODE" ]; then
if [ -n "$SRC_INODE" ] && [ -n "$DST_INODE" ] && [ "$SRC_INODE" = "$DST_INODE" ]; then
log "Not moving $SRC to $DST, they are the same path"
exit 0
fi
Expand Down

0 comments on commit 6eebd45

Please sign in to comment.