From 9487eea192e48e9f1900774a501acd6c8c1f00f0 Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Wed, 30 Dec 2020 15:44:11 +0100 Subject: [PATCH] Invert check for "Release" build This makes the scripts runnable directly from the terminal where the 'CONFIGURATION' variable is not set to any value. --- scripts/swiftformat.sh | 2 +- scripts/swiftlint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/swiftformat.sh b/scripts/swiftformat.sh index 40d90f6..3996c71 100755 --- a/scripts/swiftformat.sh +++ b/scripts/swiftformat.sh @@ -5,7 +5,7 @@ if [[ "${CI}" == "true" ]]; then exit 0 fi -if [[ "${CONFIGURATION}" != "Debug" ]]; then +if [[ "${CONFIGURATION}" == "Release" ]]; then echo "Running during a release build. Formatting is skipped." exit 0 fi diff --git a/scripts/swiftlint.sh b/scripts/swiftlint.sh index 5ba563b..42cf405 100755 --- a/scripts/swiftlint.sh +++ b/scripts/swiftlint.sh @@ -5,7 +5,7 @@ if [[ "${CI}" == "true" ]]; then exit 0 fi -if [[ "${CONFIGURATION}" != "Debug" ]]; then +if [[ "${CONFIGURATION}" == "Release" ]]; then echo "Running during a release build. Linting is skipped." exit 0 fi