summaryrefslogtreecommitdiff
path: root/tools/maybe-mv
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-07-17 16:50:40 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-07-17 23:35:14 -0700
commit25070b355b8a0394c1fbd9cf82c44752b5a8b8c3 (patch)
tree5e8edf1e5e3f58a8b11b1fcdd2fa851b2322df35 /tools/maybe-mv
parent3b0b6deecf156916a9fb68dda9ca4b8a47d65aab (diff)
downloadtmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.gz
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.bz2
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.xz
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.zip
Add dir annoyances
Diffstat (limited to 'tools/maybe-mv')
-rwxr-xr-xtools/maybe-mv2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/maybe-mv b/tools/maybe-mv
index 996052f..56d8e9e 100755
--- a/tools/maybe-mv
+++ b/tools/maybe-mv
@@ -2,9 +2,7 @@
# Replace one file with another, but maybe don't update the timestamp
if cmp "$1" "$2"
then
- echo rm "$1"
rm "$1"
else
- echo mv "$1" "$2"
mv "$1" "$2"
fi