mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Fix bashisms in create bootable usb (#477)
Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
d586b6e1bd
commit
cca4fd1ced
|
@ -103,7 +103,8 @@ fetch_iso_urls() {
|
||||||
echo "2) Arch Linux (older versions)"
|
echo "2) Arch Linux (older versions)"
|
||||||
echo "3) Debian Linux (latest)"
|
echo "3) Debian Linux (latest)"
|
||||||
echo ""
|
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
|
case $ISO_OPTION in
|
||||||
1)
|
1)
|
||||||
|
@ -144,7 +145,8 @@ write_iso(){
|
||||||
list_devices
|
list_devices
|
||||||
|
|
||||||
# Prompt user for USB device
|
# 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
|
# Verify that the USB device exists
|
||||||
if [ ! -b "$USB_DEVICE" ]; then
|
if [ ! -b "$USB_DEVICE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user