mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Using those variables without quoting will yield unexpected results if they contain spaces.
15 lines
401 B
Bash
Executable File
15 lines
401 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
|