From 2133dd9d471e8671a1c04de094950d6b197f735e Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Fri, 10 Nov 2023 16:07:47 -0600 Subject: [PATCH] Had to fix it YET again. I didn't realize that bash had -b to verify if something is a block device --- bare-arch-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bare-arch-install.sh b/bare-arch-install.sh index b5d9448..2e677b1 100755 --- a/bare-arch-install.sh +++ b/bare-arch-install.sh @@ -13,7 +13,7 @@ BOOT_METHOD="${BOOT_METHOD^^}" } DISK="${2:?"Disk was not provided"}" -[[ ! -f $DISK ]] && { +[[ ! -b $DISK ]] && { echo "Your disk ($DISK) does not exist. Please provide a valid one" exit }