2021-03-09 02:53:29 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if which swiftlint >/dev/null; then
|
2021-03-09 04:19:18 -07:00
|
|
|
cd ios && swiftlint --quiet --fix && swiftlint --quiet
|
2021-03-09 02:53:29 -07:00
|
|
|
else
|
2024-02-20 12:34:34 -07:00
|
|
|
echo "error: SwiftLint not installed, install with 'brew install swiftlint' (or manually from https://github.com/realm/SwiftLint)"
|
|
|
|
exit 1
|
2021-03-09 02:53:29 -07:00
|
|
|
fi
|