Update build.func
This commit is contained in:
parent
022863386e
commit
d55c7776ec
@ -1643,8 +1643,8 @@ check_storage_or_prompt() {
|
|||||||
|
|
||||||
# Load current values (safe with grep/cut, no BRG/HN etc.)
|
# Load current values (safe with grep/cut, no BRG/HN etc.)
|
||||||
local ct_store tpl_store
|
local ct_store tpl_store
|
||||||
ct_store=$(grep -E '^var_container_storage=' "$vars_file" | cut -d= -f2-)
|
ct_store=$(awk -F= '/^var_container_storage=/ {print $2; exit}' "$vars_file")
|
||||||
tpl_store=$(grep -E '^var_template_storage=' "$vars_file" | cut -d= -f2-)
|
tpl_store=$(awk -F= '/^var_template_storage=/ {print $2; exit}' "$vars_file")
|
||||||
|
|
||||||
# Container storage
|
# Container storage
|
||||||
if ! _validate_storage "$ct_store"; then
|
if ! _validate_storage "$ct_store"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user