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
prompt "Install target (will be WIPED COMPLETELY)"
DISK="$response"
if [[ ! -f $DISK ]]; then
err "Seems like $DISK doesn't exist. Did you typo?"
exit 1
fi
fi
if [[ $DISK == *"nvme"* ]]; then

Loading…
Cancel
Save