From 20f8f649030c525ef9cef5804c61b99648e8aa18 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:41:53 +0200 Subject: [PATCH] check for file, not for directory --- ct/homebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/homebox.sh b/ct/homebox.sh index d8889e50..4ba47a09 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -54,7 +54,7 @@ function default_settings() { } function update_script() { header_info -if [[ ! -d /opt/homebox ]]; then msg_error "No ${APP} Installation Found!"; exit; fi +if [[ ! -f /opt/homebox ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt [[ ${prompt,,} =~ ^(y|yes)$ ]] || exit