Skip to content

Commit

Permalink
getServiceVersion: handle service names with dash (#652)
Browse files Browse the repository at this point in the history
* getServiceVersion: handle service names with dash

* apply proper quotes for string interpolation

* fix function arg reference

Co-authored-by: Marcelo Costa <[email protected]>
  • Loading branch information
paulineribeyre and themarcelor authored Jul 16, 2021
1 parent 4af9339 commit 402d0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ getServiceVersion() {
local command
local response
local version
command="g3kubectl get configmap manifest-versions -o json | jq -r .data.json | jq -r .$1"
command="g3kubectl get configmap manifest-versions -o json | jq -r .data.json | jq -r "'".[\"$1\"]"'""
response=$(eval "$command")

# Get last item of delimited string using string operators:
Expand Down

0 comments on commit 402d0af

Please sign in to comment.