You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ! lessThan `swiftlint version` $SWIFTLINT_MIN; then
SWIFTLINT_UPDATED=true
fi
fi
if ! $SWIFTLINT_INSTALLED || ! $SWIFTLINT_UPDATED; then
echo "WWDC for macOS uses SwiftLint ${SWIFTLINT_MIN} or above to ensure a consistent codestyle. SwiftLint is either not installed or does not meet this minimum version."
if $BREW_INSTALLED; then
read -p "Use Homebrew to globally install the latest version of SwiftLint? [Y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
if $SWIFTLINT_INSTALLED; then
brew upgrade swiftlint
else
brew install swiftlint
fi
else
echo 'Please install SwiftLint & try again to continue.'
exit 1
fi
else
echo 'Please install SwiftLint & try again to continue.'