Skip to content

Commit 9223655

Browse files
authored
Merge pull request #2196 from docker/2194-clean-release
Prevent untracked files in releases
2 parents 1125004 + 1bc5783 commit 9223655

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ if [ -z $VERSION ]; then
1212
exit 1
1313
fi
1414

15-
echo "##> Removing stale build files"
16-
rm -rf ./build || exit 1
15+
echo "##> Removing stale build files and other untracked files"
16+
git clean -x -d -i
17+
test -z "$(git clean -x -d -n)" || exit 1
1718

1819
echo "##> Tagging the release as $VERSION"
1920
git tag $VERSION

0 commit comments

Comments
 (0)