diff --git a/scripts/distribution/macOS-package/build.sh b/scripts/distribution/macOS-package/build.sh index 4176e18f06..2250050945 100755 --- a/scripts/distribution/macOS-package/build.sh +++ b/scripts/distribution/macOS-package/build.sh @@ -5,7 +5,7 @@ readonly version=${1:?"Please provide a version number (e.g. '1.0.2')"} year="$(date +"%Y")" # Used for copyright notices. readonly year -if [[ ! "$(git diff --quiet --exit-code)" ]]; then +if ! git diff --quiet --exit-code; then echo "Uncommitted changes in the repository."; git --no-pager diff exit 1