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