Skip to content

Commit

Permalink
Fix broken dependency check
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Jun 17, 2024
1 parent d1ce3b9 commit 97bc7be
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97bc7be

Please sign in to comment.