Skip to content

Commit

Permalink
chore(check-git-status): print error message at the end of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
Trap committed Aug 2, 2024
1 parent 63191f1 commit 49fe5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build:doc": "npm run build:doc:all-exfils && npm run build:doc:mermaid",
"zip:files": "cd dist && bestzip ../mod.zip user BepInEx && cd .. && node scripts/rename-zip.js",
"prepare:files": "node scripts/prepare-files.js",
"build:release": "npm run rebuild:all && npm run prepare:files && npm run zip:files",
"build:release": "npm run rebuild:all && npm run prepare:files && npm run zip:files && npm run git:check:status",
"clean": "rimraf dist tmp 'src/**/*.js' Trap-PathToTarkov*",
"clean:all": "npm run clean:client && npm run clean",
"prettier": "prettier --write .",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-git-status.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash -e

if [[ `git status --porcelain` ]]; then
echo "Error from script 'check-git-status.sh' -> some changes are detected in this git repo"
git status
echo "Error from script 'check-git-status.sh' -> some changes are detected in this git repo"
exit 1
else
echo "OK: No changes detected."
Expand Down

0 comments on commit 49fe5a4

Please sign in to comment.