I used to write exit
in the first line to toggle the script and #exit
, as shown below:
Disable the script, for example. SwiftLint:
exit if which swiftlint >/dev/null; then swiftlint else echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" fi
Include:
#exit if which swiftlint >/dev/null; then swiftlint else echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" fi
You just need to change 1 character, regardless of whether the output is complete or not.
source share