Skip to content

Commit

Permalink
adds missing yq params
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Mendes <[email protected]>
  • Loading branch information
theflockers committed Aug 24, 2023
1 parent e50cc83 commit f00f59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/update-paths
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ for(( p=0; p<pathsLength; p++)); do
yqExp=$(sed 's|.*{{\(.*\)}}.*|\1|' <<< "${replacement}"| xargs)

# execute the yq expression and replace the "replacement string" with the result
yqResult=$(yq "${yqExp}" "${FILE}")
yqResult=$(yq -oy -r "${yqExp}" "${FILE}")
newReplacement=$(sed "s|{{.*}}|"${yqResult}"|g" <<< "${replacement}")

# appends to the newReplacements array
Expand Down

0 comments on commit f00f59d

Please sign in to comment.