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

20 lines
366 B
Bash
Executable File

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