chiark / gitweb /
changelog: Document -t option
[chiark-utils.git] / backup / snap-drop
index 39deaf16679b663a0af203c2ba1b51a08b3c636e..85c443dc57de7cc70464fa5fb4babf58099ac5e6 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/sh
 set -e
 vd=/var/lib/chiark-backup
+if [ "x$1" != "x" ]; then
+       vd="$1"; shift
+fi
 cd "$vd"
-test -f snap-drop
+test -f snap-drop || exit 0
 sh -x snap-drop || true
 rm snap-drop