Fix Bash 3 bad array subscript bug (#411)

pull/346/merge
Tim Byrne 11 months ago
parent bd0039a650
commit f59d903769
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
  1. 6
      yadm

@ -654,10 +654,10 @@ function set_local_alt_values() {
local -a all_classes
all_classes=$(config --get-all local.class)
while IFS='' read -r local_class; do
local_classes+=("$local_class")
while IFS='' read -r class; do
local_classes+=("$class")
local_class="$class"
done <<< "$all_classes"
local_class="${local_classes[-1]:-}"
local_arch="$(config local.arch)"
if [ -z "$local_arch" ] ; then

Loading…
Cancel
Save