From 6da855a05f1ce0258a3f8cc476838d3545820eca Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Fri, 10 Nov 2023 16:06:11 -0600 Subject: [PATCH] Had to change -d flag to -f as I forgot disks are considered special files --- 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 9290c72..b5d9448 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"}" -[[ ! -d $DISK ]] && { +[[ ! -f $DISK ]] && { echo "Your disk ($DISK) does not exist. Please provide a valid one" exit }