mirror of
https://github.com/go-task/task.git
synced 2025-06-17 00:17:51 +02:00
fix: forward env to RunCommand when evaluating sh vars (#1869)
* forward env to RunCommand when evaluating sh vars. fixes #1742 * feat: added tests * fix: test --------- Co-authored-by: Pete Davison <pd93.uk@outlook.com>
This commit is contained in:
@ -130,6 +130,7 @@ func TestEnv(t *testing.T) {
|
||||
"global.txt": "FOO='foo' BAR='overridden' BAZ='baz'\n",
|
||||
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
|
||||
"not-overridden.txt": "QUX='from_os'\n",
|
||||
"dynamic.txt": "foo\n",
|
||||
},
|
||||
}
|
||||
tt.Run(t)
|
||||
|
Reference in New Issue
Block a user