Files
GradientLoadingBar/Scripts/swift-lint.sh
T
Felix Mau d71fb24f21 ♻️ :: Update scripts
2018-09-19 21:33:02 +02:00

20 lines
332 B
Bash
Executable File

#
# swift-lint.sh
# Created by Felix Mau (https://felix.hamburg)
#
#!/bin/bash
cd Example/
# Path config
PODS_ROOT="Pods"
SWIFTLINT="${PODS_ROOT}/SwiftLint/swiftlint"
if [ ! -f "$SWIFTLINT" ]; then
echo "warning: SwiftLint not installed!"
exit 1
fi
# Run "swiftlint" and break build on any warnings.
$SWIFTLINT --strict