Skip to content

Instantly share code, notes, and snippets.

@stevekuznetsov
Created September 29, 2015 14:21
Show Gist options
  • Save stevekuznetsov/3cd39dea1e92620d0fc9 to your computer and use it in GitHub Desktop.
Save stevekuznetsov/3cd39dea1e92620d0fc9 to your computer and use it in GitHub Desktop.
bash woes
$ wait_for_command "oc get imagestream openldap --template='{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}' | grep latest" $((60*TIME_SEC))
test/extended/authentication.sh: line 63: tags: unbound variable
$ wait_for_command 'oc get imagestream openldap --template="{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}" | grep latest' $((60*TIME_SEC))
test/extended/../../hack/util.sh: line 198: tags: unbound variable
$ wait_for_command 'tags= && event= && oc get imagestream openldap --template="{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}" | grep latest' $((60*TIME_SEC))
error: error parsing template {{with := .status.tags}}{{with := index 0}}{{.tag}}{{end}}{{end}}, template: output:1: unexpected ":=" in with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment