the intended variable should be var_storage_available
This commit is contained in:
Giuseppe Calà 2024-08-09 17:52:23 +00:00 committed by GitHub
parent ca4cc688f6
commit 034a23b61c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,7 @@ if [[ $type != 'migration' ]]; then
declare root_storage_available=($(df --output=avail /)) declare root_storage_available=($(df --output=avail /))
root_storage_available=${root_storage_available[1]} root_storage_available=${root_storage_available[1]}
declare var_storage_available=($(df --output=avail /var/tmp)) declare var_storage_available=($(df --output=avail /var/tmp))
var_storage_available=${root_storage_available[1]} var_storage_available=${var_storage_available[1]}
if [[ $root_storage_available -lt $minimum_available_root_storage ]]; then if [[ $root_storage_available -lt $minimum_available_root_storage ]]; then
printf 'Not enough storage available on root to export image\n' printf 'Not enough storage available on root to export image\n'