Small bugfix, Uploaded USB Contents

This commit is contained in:
2026-08-17 15:33:19 -04:00
parent 2941ddbece
commit 455e961b9c
977 changed files with 180053 additions and 8 deletions
+4 -4
View File
@@ -183,22 +183,22 @@ get_device () {
do
read -r device
logresponse "$device"
while [[ ! $device =~ ^sd[a-z]$ ]] && [[ ! $device =~ ^nvme0n[0-9]$ ]];
while [[ ! $device =~ ^sd[a-z]$ ]] && [[ ! $device =~ ^nvme[0-9]n[0-9]$ ]];
do
if [[ $device = "help" ]];
then
loginfo "The UNIX filesystem thinks of storage devices as directories, which are under /dev/"
loginfo "If you have a SATA connection, you will be looking for sd{a-z}."
loginfo "If you have a NVME connection, you will be looking for nvme0n{0-9}."
loginfo "If you have a NVME connection, you will be looking for nvme{0-9}n{0-9}."
else
logwarn "Invalid format, device should follow naming conventions. (i.e. sd{a-z}, nvme0n{0-9})"
logwarn "Invalid format, device should follow naming conventions. (i.e. sd{a-z}, nvme{0-9}n{0-9})"
fi
read -r device
logresponse "$device"
done
if [[ $devicetype = "HDD_SATA" ]] || [[ $devicetype = "SSD_SATA" ]];
then
if [[ $device =~ ^nvme0n[0-9]$ ]];
if [[ $device =~ ^nvme[0-9]n[0-9]$ ]];
then
logwarn "Device was specified to be a SATA HDD or SSD, but a NVME device was chosen."
device=