Compare commits

...

3 Commits

Author SHA1 Message Date
Lennart Pieperjohanns
9775b7ff82
Merge e96b75a890 into e463037e69 2024-11-07 01:28:08 +05:45
Lennart Pieperjohanns
e96b75a890
Update core/tabs/utils/create-bootable-usb.sh
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
2024-11-01 19:29:27 +01:00
Lennart Pieperjohanns
cec1cbb9a8
fix create-bootable-usb.sh confirmation prompt 2024-11-01 18:51:14 +01:00

View File

@ -233,7 +233,8 @@ write_iso(){
printf "%b" "${RED}WARNING: This will erase all data on ${USB_DEVICE}. Are you sure you want to continue? (y/N): ${RC}" printf "%b" "${RED}WARNING: This will erase all data on ${USB_DEVICE}. Are you sure you want to continue? (y/N): ${RC}"
read -r CONFIRMATION read -r CONFIRMATION
if [ "$CONFIRMATION" != "yes" ]; then CONFIRMATION="$(echo "$CONFIRMATION" | tr '[:upper:]' '[:lower:]')"
if [ "${CONFIRMATION}" != "yes" ] && [ "${CONFIRMATION}" != "y" ]; then
printf "%b\n" "${YELLOW}Operation cancelled.${RC}" printf "%b\n" "${YELLOW}Operation cancelled.${RC}"
exit 1 exit 1
fi fi