mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Environment variable won't be commands.
This fixes execution on cmd on Windows because there are default environmen variable beginning with $
This commit is contained in:
@@ -68,11 +68,7 @@ func (t *Task) handleVariables() (map[string]string, error) {
|
||||
return nil, err
|
||||
}
|
||||
for key, value := range getEnvironmentVariables() {
|
||||
val, err := handleDynamicVariableContent(value)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
localVariables[key] = val
|
||||
localVariables[key] = value
|
||||
}
|
||||
return localVariables, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user