mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-19 12:49:48 +02:00
fix: moving the top level key name to the "name" property.
This commit is contained in:
parent
31d0b732b2
commit
9da424985d
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user