-
Hello I have a problem to quote with "" one value in array Version YQ Yml file SRC
Code #!/bin/bash
ADMIN_TEAM=toto
v=${ADMIN_TEAM} yq eval '.all_access.backend_roles += [env(v)] | .all_access.backend_roles style="double"' -i ./sample.yml RESULT
User toto added but without double quote :-( ( - "toto" ) Help !!! |
Beta Was this translation helpful? Give feedback.
Answered by
jmcwork
Nov 25, 2022
Replies: 1 comment
-
Find ! v=${ADMIN_TEAM} yq eval '.all_access.backend_roles += [env(v)] | .all_access.backend_roles.[] style="double"' -i ./sample.yml |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmcwork
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Find !
v=${ADMIN_TEAM} yq eval '.all_access.backend_roles += [env(v)] | .all_access.backend_roles.[] style="double"' -i ./sample.yml