chiark / gitweb /
do not placate -Wpointer-sign
[chiark-utils.git] / backup / nosnap
index b9d57ab21edf166d342c6c83c5e90ed97d061f97..6b8db642579e2d5c96a503ec907c8a4759ff5121 100755 (executable)
@@ -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"
 }