File: snap-drop

package info (click to toggle)
chiark-utils 8.0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,084 kB
  • sloc: ansic: 4,640; perl: 4,281; sh: 671; python: 465; makefile: 286; tcl: 228
file content (10 lines) | stat: -rwxr-xr-x 162 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
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 || exit 0
sh -x snap-drop || true
rm snap-drop