fix: moving the top level key name to the "name" property.

This commit is contained in:
Robert Wlodarczyk 2022-07-16 11:24:32 -07:00
parent 31d0b732b2
commit 9da424985d

View File

@ -37,7 +37,7 @@ normalize_config() {
elif [ -f "${HOME_DIR}/config.yaml" ]; then elif [ -f "${HOME_DIR}/config.yaml" ]; then
JSON_CONFIG="$(rq -y <<< "$(cat "${HOME_DIR}"/config.yaml)")" JSON_CONFIG="$(rq -y <<< "$(cat "${HOME_DIR}"/config.yaml)")"
fi fi
jq -r 'map(.)' <<< "${JSON_CONFIG}" > "${HOME_DIR}"/config.working.json jq -r 'to_entries | map_values(.value + { name: .key })' <<< "${JSON_CONFIG}" > "${HOME_DIR}"/config.working.json
} }
ensure_docker_socket_accessible() { ensure_docker_socket_accessible() {