mirror of
https://github.com/restic/restic.git
synced 2025-08-21 06:38:08 +00:00
build script: Check for dirty work directory
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
Reference in New Issue
Block a user