diff --git a/scripts/mkvm b/scripts/mkvm index 7b19bf7..0ee6e7e 100755 --- a/scripts/mkvm +++ b/scripts/mkvm @@ -41,8 +41,9 @@ create_vm () { VBoxManage unregistervm --delete "${nom}" fi vboxmanage import "${nomova}" --vsys 0 --vmname "${nom}" - if [[ -v vmMem["${nom}" ]]; then - mem=vmMem["${nom}"] + if [[ -v vmMem[${nom}] ]]; then + mem=${vmMem[${nom}]} + echo "machine ${nom}: ${mem} ..." VBoxManage modifyvm "${nom}" --memory "${mem}" fi }