diff --git a/scripts/hats_shell.sh b/scripts/hats_shell.sh index e679e5b5..b141fff0 100644 --- a/scripts/hats_shell.sh +++ b/scripts/hats_shell.sh @@ -8,20 +8,20 @@ if [ ${PWD##*/} = "scripts" ]; then cd .. fi +if ! command -v python3 &> /dev/null +then + echo "Installing Xcode CLI Tools" + xcode-select --install +fi + if [[ $(uname -m) == 'arm64' ]]; then export ROSETTA2_STATUS_RESULT=$(/usr/bin/pgrep -q oahd && echo true || echo false) if ! $ROSETTA2_STATUS_RESULT; then echo "Installing Rosetta 2 dependency" - /usr/sbin/softwareupdate --install-rosetta + /usr/sbin/softwareupdate --install-rosetta --agree-to-license fi fi -if ! command -v python3 &> /dev/null -then - echo "Installing Xcode CLI Tools" - xcode-select --install -fi - echo "INFO: Setting path to node for this session" if [[ $(uname -m) == 'arm64' ]]; then export PATH_TO_NODE="$(pwd)/nodejs-mac-arm64/bin"