Skip to content

Commit

Permalink
Exit when it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored May 27, 2024
1 parent 7ed5b23 commit 7c1165d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ case "$os" in
sudo mount ${verbose} ${loopdevice} ${imgdir}
echo "Getting firmware"
cd - >/dev/null
python3 "$0" ${imgdir}/usr/share/firmware ${workdir}/firmware-renamed.tar ${verbose} || (echo -e "\nCouldn't extract firmware. Try running the script with some other macOS version. If error still persists, try restarting your Mac and then run the script again" && cleanup_dmg)
python3 "$0" ${imgdir}/usr/share/firmware ${workdir}/firmware-renamed.tar ${verbose} || (echo -e "\nCouldn't extract firmware. Try running the script with some other macOS version. If error still persists, try restarting your Mac and then run the script again" && cleanup_dmg && exit 1)
sudo tar ${verbose} -xC /lib/firmware/brcm -f ${workdir}/firmware-renamed.tar
echo "Reloading Wi-Fi and Bluetooth drivers"
sudo modprobe -r brcmfmac_wcc || true
Expand Down

0 comments on commit 7c1165d

Please sign in to comment.