Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
No Bug: Update swiftlint script to include M1 Macs directory. (#4449)
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub authored Nov 2, 2021
1 parent 4c29b30 commit 90efb9f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions swiftlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
#
# Runs SwiftLint to enforce style guides
#
# Adds support for Apple Silicon brew directory
export PATH="$PATH:/opt/homebrew/bin"

command -v swiftlint >/dev/null 2>&1 || { echo >&2 "Please install SwiftLint via Homebrew or directly from https://github.com/realm/SwiftLint"; exit 1; }
if which swiftlint; then
swiftlint
else
echo "Please install SwiftLint via Homebrew or directly from https://github.com/realm/SwiftLint"
exit 1
fi

cd $SRCROOT
swiftlint

0 comments on commit 90efb9f

Please sign in to comment.