diff options
author | Joffrey F <joffrey@docker.com> | 2018-12-07 15:30:25 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-12-07 16:08:00 -0800 |
commit | 1bc5783a3d253021f82d21f123b00a8fe45d08e3 (patch) | |
tree | f96e8eca9e11577709afc6ffe810639967d7f281 | |
parent | 11250042ebaf67dd2f5b7513a7e129962621c9b6 (diff) | |
download | docker-py-2194-clean-release.tar.gz |
Prevent untracked files in releases2194-clean-release
Signed-off-by: Joffrey F <joffrey@docker.com>
-rwxr-xr-x | scripts/release.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index f3ace27..d9e7a05 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -12,8 +12,9 @@ if [ -z $VERSION ]; then exit 1 fi -echo "##> Removing stale build files" -rm -rf ./build || exit 1 +echo "##> Removing stale build files and other untracked files" +git clean -x -d -i +test -z "$(git clean -x -d -n)" || exit 1 echo "##> Tagging the release as $VERSION" git tag $VERSION |