mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
Replace --exit-status with --exit-code
Summary: My version of git and the online docs for git-diff show --exit-code as the option to return the status code, not --exit-status. This commit updates release.sh to use --exit-code in place of --exit-status. Test Plan: - ./release.sh 0.8.0 0.9.0 Auditors: emily
This commit is contained in:
@@ -10,7 +10,7 @@ NARGS=0
|
||||
DRY_RUN=
|
||||
INSANE=0
|
||||
|
||||
# usage [ERROR-MESSAGES...] EXIT-STATUS
|
||||
# usage [ERROR-MESSAGES...] EXIT-CODE
|
||||
usage() {
|
||||
while [[ $# -gt 1 ]]; do
|
||||
echo "$1" >&2
|
||||
@@ -122,7 +122,7 @@ node update-sri.js "${VERSION}" README.md contrib/*/README.md dist/README.md
|
||||
# Make the commit and tag, and push them.
|
||||
git add package.json bower.json README.md contrib/*/README.md dist/README.md
|
||||
git commit -n -m "v$VERSION"
|
||||
git diff --stat --exit-status # check for uncommitted changes
|
||||
git diff --stat --exit-code # check for uncommitted changes
|
||||
git tag -a "v$VERSION" -m "v$VERSION"
|
||||
git push origin "v$VERSION"
|
||||
|
||||
|
Reference in New Issue
Block a user