2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-04 01:50:48 +00:00

build script: Check for dirty work directory

This commit is contained in:
Alexander Neumann 2017-05-25 15:50:37 +02:00
parent 17ff41af47
commit 37b107b90b

View File

@ -7,6 +7,11 @@ if [[ -z "$VERSION" ]]; then
exit 1
fi
if [[ -n "$(git diff)" ]]; then
echo 'workspace is dirty'
exit 1
fi
dir=$(mktemp -d --tmpdir restic-release-XXXXXX)
echo "path is ${dir}"