Fixed uninitialized env var RULES

This commit is contained in:
Unknown 2018-05-03 15:54:37 +08:00
parent d23a2fb386
commit 79d70906d5

View file

@ -1,5 +1,5 @@
{{/* Load the json that returns a list of rule names mapped to its respective filepath */}}
{{ $RULES := parseJson $.Env.RULES }}
{{ $RULES := parseJson ( or $.Env.RULES "[]" ) }}
{{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }}