Fix Bash 3 bad array subscript bug (#411)
This commit is contained in:
parent
bd0039a650
commit
f59d903769
1 changed files with 3 additions and 3 deletions
6
yadm
6
yadm
|
@ -654,10 +654,10 @@ function set_local_alt_values() {
|
||||||
|
|
||||||
local -a all_classes
|
local -a all_classes
|
||||||
all_classes=$(config --get-all local.class)
|
all_classes=$(config --get-all local.class)
|
||||||
while IFS='' read -r local_class; do
|
while IFS='' read -r class; do
|
||||||
local_classes+=("$local_class")
|
local_classes+=("$class")
|
||||||
|
local_class="$class"
|
||||||
done <<< "$all_classes"
|
done <<< "$all_classes"
|
||||||
local_class="${local_classes[-1]:-}"
|
|
||||||
|
|
||||||
local_arch="$(config local.arch)"
|
local_arch="$(config local.arch)"
|
||||||
if [ -z "$local_arch" ] ; then
|
if [ -z "$local_arch" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue