Use 'exit' to return from a Bash script

This commit is contained in:
Danny Moesch 2020-12-30 15:38:03 +01:00 committed by Mingshen Sun
parent 52a8c4a401
commit 43ae029bfe
2 changed files with 4 additions and 4 deletions

View file

@ -2,12 +2,12 @@ SWIFTFORMAT_VERSION="0.47.*"
if [[ "${CI}" == "true" ]]; then
echo "Running in a Continuous Integration environment. Formatting is skipped."
return
exit 0
fi
if [[ "${CONFIGURATION}" != "Debug" ]]; then
echo "Running during a release build. Formatting is skipped."
return
exit 0
fi
if which swiftformat > /dev/null; then

View file

@ -2,12 +2,12 @@ SWIFTLINT_VERSION="0.42.*"
if [[ "${CI}" == "true" ]]; then
echo "Running in a Continuous Integration environment. Linting is skipped."
return
exit 0
fi
if [[ "${CONFIGURATION}" != "Debug" ]]; then
echo "Running during a release build. Linting is skipped."
return
exit 0
fi
if which swiftlint > /dev/null; then