|
@@ -5,6 +5,16 @@
|
|
|
# If you'd like to override or set any custom environment variables, this .envrc will read a .env file at the end.
|
|
|
set -e
|
|
|
|
|
|
+# Upgrading Mac can uninstall the Command Line Tools, thus, removing our access to git
|
|
|
+# The message talks about xcrun, however, we can use the lack of git as a way to know that we need this
|
|
|
+# xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
|
|
|
+# missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
|
|
|
+if [ "$(uname -s)" == "Darwin" ] && [ ! -f "/Library/Developer/CommandLineTools/usr/bin/git" ]; then
|
|
|
+ echo -e "$(tput setaf 1)\nERROR: Complete the interactive installation (10+ mins) of the Command Line Tools.$(tput sgr0)"
|
|
|
+ xcode-select --install
|
|
|
+ return 1
|
|
|
+fi
|
|
|
+
|
|
|
SENTRY_ROOT="$(
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
pwd -P
|