Skip to content

Commit

Permalink
fix(chezmoi): add conditional check for setting empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Mar 20, 2024
1 parent e26b372 commit a727cd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chezmoi/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,17 @@
# {{- if and (hasKey . "github") (hasKey .github "token") .github.token -}}
# {{- $github_token = .github.token -}}
# {{- end -}}
# {{- if eq $github_token "NULL" "null" -}}
# {{- $github_token = "" -}}
# {{- end -}}

# {{- $gpg_passphrase := or (env "GPG_PASSPHRASE") "" -}}
# {{- if and (hasKey . "gnupg") (hasKey .gnupg "passphrase") -}}
# {{- $gpg_passphrase = .gnupg.passphrase -}}
# {{- end -}}
# {{- if eq $gpg_passphrase "NULL" "null" -}}
# {{- $gpg_passphrase = "" -}}
# {{- end -}}

# {{- $age_recipients:= or (env "AGE_RECIPIENTS") "" -}}
# {{- $ssh_homedir := or (joinPath .chezmoi.homeDir ".ssh") -}}
Expand Down

0 comments on commit a727cd1

Please sign in to comment.