Skip to content

Commit

Permalink
Use env/GetVar for scripts's env_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
regisphilibert committed Oct 27, 2022
1 parent 56c98d7 commit 5462f13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/scripts/private/GetDefines.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
{{ with $config.env_keys }}
{{ if reflect.IsSlice . }}
{{ range $var := . }}
{{ with getenv . }}
{{ with partial "huge/env/GetVar" . }}
{{ $key := print "process.env." $var }}
{{ $value := printf `"%s"` . }}
{{ $s.SetInMap "defines" $key $value }}
{{ else }}
{{ partial "huge/console/warn" (printf "Scripts: The environement variable %s requested by a script is missing." $var) }}
{{ end }}
{{ end }}
{{ else }}
Expand Down

0 comments on commit 5462f13

Please sign in to comment.