Browse Source

fix: use correct IFS when printing table (#94)

shellcheck-fixes 1.2.11
Giovanni Torres 8 months ago committed by GitHub
parent
commit
b9ef1b35b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      kvm-install-vm

4
kvm-install-vm

@ -739,8 +739,10 @@ function set_custom_defaults ()
declare -gA BUILTIN_VM_SOURCES=()
declare -gA BUILTIN_VM_ARCHS=()
local IFS="|"
for entry in "${BUILTIN_VMS[@]}"; do
IFS=":" read -r name description arch url <<< "$entry"
read -r name description arch url <<< "$entry"
key="${name}_${arch}"
BUILTIN_VM_DESCRIPTIONS["$key"]=$description
BUILTIN_VM_ARCHS["$key"]=$arch

Loading…
Cancel
Save