chiark / gitweb /
Portability fix: Fix on libcs where st_mtime is not a macro (ie, ones lacking st_mtim.)
[chiark-utils.git] / backup / snap-drop
1 #!/bin/sh
2 set -e
3 vd=/var/lib/chiark-backup
4 if [ "x$1" != "x" ]; then
5         vd="$1"; shift
6 fi
7 cd "$vd"
8 test -f snap-drop || exit 0
9 sh -x snap-drop || true
10 rm snap-drop