From 97bc7be9c527b7bd94e22c040b6a65b51b2222c2 Mon Sep 17 00:00:00 2001 From: sharpenedblade Date: Mon, 17 Jun 2024 01:12:14 -0700 Subject: [PATCH] Fix broken dependency check --- docs/tools/firmware.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/tools/firmware.sh b/docs/tools/firmware.sh index 9164f48d5..d889f4bb4 100755 --- a/docs/tools/firmware.sh +++ b/docs/tools/firmware.sh @@ -454,15 +454,15 @@ install_package() { create_firmware_archive() { local firmware_tree=$1 local archive=$2 - if ! [[ $(uname -s) = "Darwin" ]]; then - return 0 - fi - if [ ! -f "/Library/Developer/CommandLineTools/usr/bin/python3" ] && [ ! -f "/Applications/Xcode.app/Contents/Developer/usr/bin/python3" ] - then - echo -e "\nPython 3 not found. You will be prompted to install Xcode command line developer tools." - xcode-select --install - echo - read -rp "Press enter after you have installed Xcode command line developer tools." + if [[ "$(uname -s)" = "Darwin" ]]; then + echo -e "\nChecking for dependencies" + if [ ! -f "/Library/Developer/CommandLineTools/usr/bin/python3" ] && [ ! -f "/Applications/Xcode.app/Contents/Developer/usr/bin/python3" ] + then + echo -e "\nPython 3 not found. You will be prompted to install Xcode command line developer tools." + xcode-select --install + echo + read -rp "Press enter after you have installed Xcode command line developer tools." + fi fi rename_firmware "$firmware_tree" "$archive" ${verbose} if [[ $(uname -s) = "Darwin" ]]; then