#!/bin/bash # Script for writing a supplied image file to a data storage device (just usb drives for now) # Zen, 2022 # Font decoration for better a e s t h e t i c RED="\e[0;91m" GREEN="\e[0;92m" BLUE="\e[0;94m" BOLD="\e[1m" ULINE="\e[4m" NC="\e[0m" # ------------------- Step 1 - Select USB ------------------- echo "Looking for USB devices..." echo "" echo -e "${ULINE}Found these!${NC}" lsblk -pdo NAME,MODEL,TRAN | grep usb > usb-list i=1 while read -u 11 line; do echo -e "${BOLD}$i.${NC} $line" i=$((i+1)) done 11 img-list i=1 echo "" echo -e "${ULINE}Images${NC}" while read -u 11 line; do echo -e "${BOLD}$i.${NC} $line" i=$((i+1)) done 11