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