chiark / gitweb /
chiark-backup: really cope properly with nosnap removal debian_version_4_1_29
authorianmdlvl <ianmdlvl>
Thu, 28 Aug 2008 19:03:15 +0000 (19:03 +0000)
committerianmdlvl <ianmdlvl>
Thu, 28 Aug 2008 19:03:15 +0000 (19:03 +0000)
backup/nosnap
debian/changelog

index b9d57ab..6b8db64 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"
 }
 
index 65a7fcd..25a7ae7 100644 (file)
@@ -2,8 +2,9 @@ chiark-utils (4.1.29) unstable; urgency=low
 
   * backup-snaprsync: pass $vardir as argument to snap-drop
   * backup-snaprsync: add a missing x prefix to an ssh invocation
+  * chiark-backup: really cope properly with nosnap removal
 
- -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 28 Aug 2008 19:54:34 +0100
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 28 Aug 2008 20:02:47 +0100
 
 chiark-utils (4.1.28) unstable; urgency=high