summaryrefslogtreecommitdiff
path: root/jobs/alpine-amd64.run
blob: 80e864405b4e3005ea301420d85a29db1ec603cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# vim: ft=sh
set -e
. common

if [ -n "$CLEAN" ]; then
	echo_stage "Remove root"
	flock --exclusive "$WORKSPACE/root.lock" uroot rm -rf "$WORKSPACE/root"
fi

export ROOT="$WORKSPACE/root"
flock --exclusive "$WORKSPACE/root.lock" "$(readlink -f "$0" | sed 's/\.run$/\.sh/')"