Skip to content

Commit

Permalink
Fix bashisms in create bootable usb (ChrisTitusTech#477)
Browse files Browse the repository at this point in the history
Co-authored-by: nnyyxxxx <[email protected]>
  • Loading branch information
nnyyxxxx and nnyyxxxx authored Sep 19, 2024
1 parent d586b6e commit cca4fd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tabs/utils/create-bootable-usb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fetch_iso_urls() {
echo "2) Arch Linux (older versions)"
echo "3) Debian Linux (latest)"
echo ""
read -p "Select the ISO you want to download (1-3): " ISO_OPTION
printf "Select the ISO you want to download (1-3): "
read -r ISO_OPTION

case $ISO_OPTION in
1)
Expand Down Expand Up @@ -144,7 +145,8 @@ write_iso(){
list_devices

# Prompt user for USB device
read -p "Enter the USB device (e.g., /dev/sdX): " USB_DEVICE
printf "Enter the USB device (e.g., /dev/sdX): "
read -r USB_DEVICE

# Verify that the USB device exists
if [ ! -b "$USB_DEVICE" ]; then
Expand Down

0 comments on commit cca4fd1

Please sign in to comment.