From 69c9299d1dee4efd49b32ac13f99da906a3df951 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Fri, 9 Feb 2024 17:02:45 +0100 Subject: [PATCH] Do not run storage check if set to 0 --- arkdep | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arkdep b/arkdep index dfe9965..b591faf 100755 --- a/arkdep +++ b/arkdep @@ -170,12 +170,14 @@ if [[ $1 == 'deploy' ]]; then declare root_storage_available=($(df --output=avail /)) root_storage_available=${root_storage_available[1]} - if [[ $boot_storage_available -lt $minimum_available_boot_storage ]]; then + # Check amount of available boot storage, do not run if set to 0 + if [[ $boot_storage_available -lt $minimum_available_boot_storage ]] && [[ $minimum_available_boot_storage -ne 0 ]]; then printf "\e[1;31m<#>\e[0m\e[1m Less than ${minimum_available_boot_storage}Kib available on boot partition\e[0m\n" exit 1 fi - if [[ $root_storage_available -lt $minimum_available_root_storage ]]; then + # Check amount of available root storage, do not run if set to 0 + if [[ $root_storage_available -lt $minimum_available_root_storage ]] && [[ $minimum_available_root_storage -ne 0 ]] ; then printf "\e[1;31m<#>\e[0m\e[1m Less than ${minimum_available_root_storage}Kib available on root partition\e[0m\n" exit 1 fi