diff --git a/workshop.sh b/workshop.sh index bfe04b07..6a849fe3 100644 --- a/workshop.sh +++ b/workshop.sh @@ -1,7 +1,12 @@ #!/bin/bash - 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 gmad='../../../bin/gmad' gmpublish='../../../gmpublish'