diff options
Diffstat (limited to 'mv-if-diff')
-rw-r--r-- | mv-if-diff | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mv-if-diff b/mv-if-diff index ada6040c07..4a85b98392 100644 --- a/mv-if-diff +++ b/mv-if-diff @@ -10,5 +10,6 @@ if cmp $1 $2 >/dev/null 2>&1; then echo "File $2 not changed." rm -f $1 else + rm -f $2 mv $1 $2 fi |