forked from TrueCloudLab/restic
build script: Check for dirty work directory
This commit is contained in:
parent
17ff41af47
commit
37b107b90b
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ if [[ -z "$VERSION" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$(git diff)" ]]; then
|
||||||
|
echo 'workspace is dirty'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
dir=$(mktemp -d --tmpdir restic-release-XXXXXX)
|
dir=$(mktemp -d --tmpdir restic-release-XXXXXX)
|
||||||
echo "path is ${dir}"
|
echo "path is ${dir}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue