chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indent in comment
[chiark-utils.git]
/
backup
/
nosnap
diff --git
a/backup/nosnap
b/backup/nosnap
index b9d57ab21edf166d342c6c83c5e90ed97d061f97..6b8db642579e2d5c96a503ec907c8a4759ff5121 100755
(executable)
--- a/
backup/nosnap
+++ b/
backup/nosnap
@@
-3,11
+3,7
@@
set -e
removes () {
- if test -d "$vardir/snap-mount"; then
- rmdir -- "$vardir/snap-mount"
- else
- rm -f -- "$vardir/snap-mount"
- fi
+ rmdir -- "$vardir/snap-mount" || rm -f -- "$vardir/snap-mount"
rm -f -- "$vardir/snap-device"
}