From 0f8d7fe131fa7474f35f78703ddab2a16ac028da Mon Sep 17 00:00:00 2001 From: axtloss <60044824+axtloss@users.noreply.github.com> Date: Thu, 13 May 2021 08:50:20 +0200 Subject: [PATCH] Fixed disk check for auto partitioning --- citrine.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citrine.sh b/citrine.sh index cf93d0e..812eaeb 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 [[ ! -f $DISK ]]; then + if [[ $(ls $DISK) == $DISK ]]; then err "Seems like $DISK doesn't exist. Did you typo?" exit 1 fi @@ -191,4 +191,4 @@ rm /mnt/continue.sh inf "Installation should now be complete. Please press enter to reboot :)" read -reboot \ No newline at end of file +reboot