Skip to content

Is this the right way to use BWS with variables? #3723

Closed Answered by returntrip
returntrip asked this question in Q&A
Discussion options

You must be logged in to vote

Update: I readded my changes and this time it seemed to have worked. I will do some more testing and close this if all is fine. In the meanwhile, thanks for the help!

Sorry I should have posted the whole template. This is the original template which populates the email and other dtaa correctly. I was assuming that I could populate the email value using BWS. But I am probably doing something wrong.

{{- $work := false -}}{{/* true if this machine is used for work related tasks */}}
{{- $personal := false -}}{{/* true if this machine is used for personal tasks */}}
{{- $tty := false -}}{{/* true if this machine is a terminal based */}}

{{/* detect WSL or SSH sessions */}}
{{- if or (env "SS…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@returntrip
Comment options

Answer selected by returntrip
@twpayne
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants