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