mirror of
https://github.com/go-task/task.git
synced 2025-04-15 11:56:34 +02:00
Fix nil panic bug when assigning global var and no var is declared on the Taskfile
Closes #229 Ref #234
This commit is contained in:
parent
4c295b564a
commit
955359b073
@ -40,5 +40,8 @@ func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
if tf.Expansions <= 0 {
|
||||
tf.Expansions = 2
|
||||
}
|
||||
if tf.Vars == nil {
|
||||
tf.Vars = make(Vars)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user