From 74a69e824bac15f6a466415faf61a409b0d315c7 Mon Sep 17 00:00:00 2001 From: sharpenedblade Date: Thu, 11 Jul 2024 10:22:12 -0700 Subject: [PATCH] fixup! Dont prompt for input when not interactive --- docs/tools/firmware.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/tools/firmware.sh b/docs/tools/firmware.sh index f413758a5..4cf75dc0b 100755 --- a/docs/tools/firmware.sh +++ b/docs/tools/firmware.sh @@ -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