Booleans are hard

This commit is contained in:
Gwilym Kuiper 2022-07-03 18:14:25 +01:00
parent 1f04470cf5
commit 955b99be8f

View file

@ -33,7 +33,7 @@ function maybe_git() {
}
# Check that no out-standing changes in git
if [ ! "$NO_COMMIT" = "" ] && [ -n "$(git status --porcelain)" ]; then
if [ "$NO_COMMIT" = "" ] && [ -n "$(git status --porcelain)" ]; then
echo "Uncommitted changes, please commit first"
exit 1
fi