From 36c3562d1fa9a4cc181a48459591e73885d1a4b6 Mon Sep 17 00:00:00 2001 From: Matt C Date: Thu, 13 May 2021 22:20:54 -0400 Subject: [PATCH] fix check disk issue --- citrine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citrine.sh b/citrine.sh index 812eaeb..4cc40de 100755 --- a/citrine.sh +++ b/citrine.sh @@ -50,7 +50,7 @@ if [[ "$PMODE" == "y" ]]; then else prompt "Install target (will be WIPED COMPLETELY)" DISK="$response" - if [[ $(ls $DISK) == $DISK ]]; then + if ! fdisk -l ${DISK}; then err "Seems like $DISK doesn't exist. Did you typo?" exit 1 fi