make sure git status is clean before pushing to workshop

This commit is contained in:
CapsAdmin 2022-03-05 09:48:41 +01:00
parent d04c417752
commit cd65ad180c

View File

@ -1,7 +1,12 @@
#!/bin/bash #!/bin/bash
WORKSHOP_ID=104691717 WORKSHOP_ID=104691717
if [ "$(git status --porcelain)" ]; then
echo "You have uncommitted changes in your workspace."
echo "Please commit or stash them before continuing."
exit 1
fi
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
gmad='../../../bin/gmad' gmad='../../../bin/gmad'
gmpublish='../../../gmpublish' gmpublish='../../../gmpublish'