check for file, not for directory

This commit is contained in:
CanbiZ 2024-09-16 12:41:53 +02:00 committed by GitHub
parent 746f449647
commit 20f8f64903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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