From dd4f96c45a5d5733bd1dca86469be90d1798617c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Fri, 6 Jan 2023 08:35:36 +0100 Subject: [PATCH] Fix the test for changes in the repo. --- scripts/distribution/macOS-package/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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