mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Fix lints in release.sh
This commit is contained in:
parent
13a0c07329
commit
d13899f0a2
|
@ -14,7 +14,7 @@ if [ "$VERSION" = "" ]; then
|
|||
fi
|
||||
|
||||
# Check the format of version
|
||||
if [ ! "$(echo "$VERSION" | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$")" ]; then
|
||||
if echo "$VERSION" | grep -q -Ev "^[0-9]+\.[0-9]+\.[0-9]+$"; then
|
||||
echo "Version must be of the form x.y.z, got $VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -55,7 +55,7 @@ case "$PROJECT" in
|
|||
esac
|
||||
|
||||
# Check that no out-standing changes in git
|
||||
if [ ! -z "$(git status --porcelain)" ]; then
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "Uncommitted changes, please commit first"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -105,7 +105,7 @@ if [ ! "$NO_COMMIT" = "--no-commit" ]; then
|
|||
git commit -m "Release $PROJECT v$VERSION"
|
||||
|
||||
# Tag the version
|
||||
git tag -a $TAGNAME -m "$PROJECT - v$VERSION"
|
||||
git tag -a "$TAGNAME" -m "$PROJECT - v$VERSION"
|
||||
|
||||
echo "Done! Push with"
|
||||
echo "git push --atomic origin master $TAGNAME"
|
||||
|
|
Loading…
Reference in a new issue