fail if $DISK doesn't exist

artix
Matt C 4 years ago
parent f62ac6ec12
commit 60c426a4cf

@ -48,6 +48,10 @@ if [[ "$PMODE" == "y" ]]; then
else else
prompt "Install target (will be WIPED COMPLETELY)" prompt "Install target (will be WIPED COMPLETELY)"
DISK="$response" DISK="$response"
if [[ ! -f $DISK ]]; then
err "Seems like $DISK doesn't exist. Did you typo?"
exit 1
fi
fi fi
if [[ $DISK == *"nvme"* ]]; then if [[ $DISK == *"nvme"* ]]; then

Loading…
Cancel
Save