mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41: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
|
fi
|
||||||
|
|
||||||
# Check the format of version
|
# 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"
|
echo "Version must be of the form x.y.z, got $VERSION"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -55,7 +55,7 @@ case "$PROJECT" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check that no out-standing changes in git
|
# 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"
|
echo "Uncommitted changes, please commit first"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -105,7 +105,7 @@ if [ ! "$NO_COMMIT" = "--no-commit" ]; then
|
||||||
git commit -m "Release $PROJECT v$VERSION"
|
git commit -m "Release $PROJECT v$VERSION"
|
||||||
|
|
||||||
# Tag the 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 "Done! Push with"
|
||||||
echo "git push --atomic origin master $TAGNAME"
|
echo "git push --atomic origin master $TAGNAME"
|
||||||
|
|
Loading…
Reference in a new issue