Files
GradientLoadingBar/Scripts/swift-lint.sh
T
2018-08-19 12:42:02 +02:00

20 lines
331 B
Bash
Executable File

#
# swift-lint.sh
# Created by Felix Mau (http://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