mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
15 lines
399 B
Bash
Executable File
15 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Support for SwiftLint installed via Homebrew on Apple Silicon
|
|
# https://github.com/realm/SwiftLint/issues/2992
|
|
if test -d "/opt/homebrew/bin/"; then
|
|
PATH="/opt/homebrew/bin/:${PATH}"
|
|
fi
|
|
|
|
if which swiftlint >/dev/null; then
|
|
swiftlint --config ${SRCROOT}/Scripts/swiftlint.yml
|
|
else
|
|
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
|
fi
|