Use 'exit' to return from a Bash script
This commit is contained in:
parent
52a8c4a401
commit
43ae029bfe
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue