diff --git a/dump-objects b/dump-objects index bc55380..a49c556 100755 --- a/dump-objects +++ b/dump-objects @@ -139,7 +139,8 @@ extract_versioned_apis() { } validate_kinds() { - local -a mapfile -t expected < /usr/local/share/k8s-object-dumper/must-exist + local -a expected + mapfile -t expected < /usr/local/share/k8s-object-dumper/must-exist local missing=() for j in "${expected[@]}"; do local found= @@ -195,7 +196,7 @@ object_kinds() { # Get all object types for each group for url in "${groups[@]}"; do local san_name - san_name = $(sanitize_name <<< "${url##/}") + san_name=$(sanitize_name <<< "${url##/}") local name="api-${san_name}.json" local fname="${output_dir}/${name}" @@ -214,7 +215,8 @@ object_kinds() { # # retrievable_kind() { - local -a mapfile -t known_to_fail < /usr/local/share/k8s-object-dumper/known-to-fail + local -a know_to_fail + mapfile -t known_to_fail < /usr/local/share/k8s-object-dumper/known-to-fail for kind in "${known_to_fail[@]}" do @@ -426,7 +428,7 @@ for i in "${kinds[@]}"; do (( ++errors )) || true fi - echo >&2 + log >&2 done if ! split_objects ${object_files+"${object_files[@]}"}; then