Skip to content

Commit

Permalink
fixup! Dont prompt for input when not interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Jul 11, 2024
1 parent b345c86 commit 74a69e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/tools/firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,7 @@ case "$os" in
echo "Copying this script to EFI"
cp "$0" "/Volumes/${EFILABEL}/firmware.sh" 2>/dev/null \
|| curl -s https://wiki.t2linux.org/tools/firmware.sh > "/Volumes/${EFILABEL}/firmware.sh" \
|| (
echo && cat <<- EOF && [ "$interactive" = "true"] && echo "Press enter after you have copied" && read -r
|| ( echo && cat <<- EOF && [ "$interactive" = "true"] && echo "Press enter after you have copied" && read -r
Failed to copy script.
Please copy the script manually to the EFI partition using Finder
Make sure the name of the script is firmware.sh in the EFI partition
Expand Down

0 comments on commit 74a69e8

Please sign in to comment.