diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-23 19:40:38 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-24 00:36:04 -0800 |
commit | f71413176f32ef642824456544ecbda5933a0944 (patch) | |
tree | 84cad0936a4fc3b274dcdb9a7239da202f9407cc /tools/maybe-mv | |
parent | e342dbed1e87916aef984ca5d25f5ab93af46ebc (diff) | |
download | tmwa-f71413176f32ef642824456544ecbda5933a0944.tar.gz tmwa-f71413176f32ef642824456544ecbda5933a0944.tar.bz2 tmwa-f71413176f32ef642824456544ecbda5933a0944.tar.xz tmwa-f71413176f32ef642824456544ecbda5933a0944.zip |
Add non-indenting indenter for C++
Fix a bunch of bugs that none of me noticed before.
Diffstat (limited to 'tools/maybe-mv')
-rwxr-xr-x | tools/maybe-mv | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/maybe-mv b/tools/maybe-mv index 725b86b..996052f 100755 --- a/tools/maybe-mv +++ b/tools/maybe-mv @@ -1,8 +1,10 @@ #!/bin/bash -eu # Replace one file with another, but maybe don't update the timestamp -if cmp -s "$1" "$2" +if cmp "$1" "$2" then + echo rm "$1" rm "$1" else + echo mv "$1" "$2" mv "$1" "$2" fi |