diff --git a/scripts/lint.sh b/scripts/lint.sh index 643ebf7af..6605084f1 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -10,6 +10,9 @@ if test -d "/opt/homebrew/bin/"; then export PATH fi +# Make sure bash executes from the same directory as the script +cd "$(cd -P -- "$(dirname -- "$0")" && pwd -P)" + VERSION="0.50.3" FOUND=$(swiftlint version)