Skip to content

Commit

Permalink
Download script to EFI if copying fails
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Apr 25, 2024
1 parent 47e70b5 commit 7512079
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 @@ -45,7 +45,7 @@ case "$os" in
fi
fi
echo "Copying this script to EFI"
cp "$0" "/Volumes/${EFILABEL}/firmware.sh"|| (echo -e "\nFailed to copy script.\nPlease copy the script manually to the EFI partition using Finder\nMake sure the name of the script is firmware.sh in the EFI partition\n" && echo && read -p "Press enter after you have copied" && echo)
cp "$0" "/Volumes/${EFILABEL}/firmware.sh" 2>/dev/null || curl -s https://wiki.t2linux.org/tools/firmware.sh > "/Volumes/${EFILABEL}/firmware.sh" || (echo -e "\nFailed to copy script.\nPlease copy the script manually to the EFI partition using Finder\nMake sure the name of the script is firmware.sh in the EFI partition\n" && echo && read -p "Press enter after you have copied" && echo)
echo "Unmounting the EFI partition"
sudo diskutil unmount "/Volumes/${EFILABEL}/"
echo
Expand Down

0 comments on commit 7512079

Please sign in to comment.