mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
check for file, not for directory
This commit is contained in:
parent
746f449647
commit
20f8f64903
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue