From a34399626925c2e64ce7f24acacb5e1ea7f90a56 Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Sat, 22 May 2021 10:58:34 +0200 Subject: [PATCH] Fix drive detection --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f77d71e..c6eee99 100644 --- a/install.sh +++ b/install.sh @@ -45,7 +45,9 @@ if [ $disk_base == "manual" ]; then echo "[?] Good luck! Type exit to return to the installer." zsh else - if [ ! -f $disk_base ]; then + ls $disk_base > /dev/null + + if [ $? != 0 ]; then echo "[!] Device $disk_base does not exist." exit 1 fi