fix: #12 - fix _storage_template assignment

This commit is contained in:
Elton Renda
2021-04-26 12:33:18 +02:00
parent 0dfcaf082a
commit e26c5e599a

View File

@ -75,8 +75,8 @@ while [[ $# -gt 0 ]]; do
_storage=$2 _storage=$2
shift shift
;; ;;
--storage-template) --templates)
__storage_template=$2 _storage_template=$2
shift shift
;; ;;
--swap) --swap)
@ -99,7 +99,7 @@ _bridge=${_bridge:-vmbr0}
_memory=${_memory:-512} _memory=${_memory:-512}
_swap=${_swap:-0} _swap=${_swap:-0}
_storage=${_storage:-local-lvm} _storage=${_storage:-local-lvm}
_storage_template=${__storage_template:-local} _storage_template=${_storage_template:-local}
# Test if ID is in use # Test if ID is in use
if pct status $_ctid &>/dev/null; then if pct status $_ctid &>/dev/null; then