mirror of
https://github.com/go-task/task.git
synced 2026-06-27 06:34:18 +00:00
change all tests to call functions instead of binary directly
I had to temporarely hack github.com/mvdan/sh to fix dir handling
This commit is contained in:
@@ -53,7 +53,11 @@ hello:
|
||||
}
|
||||
|
||||
if init {
|
||||
if err := task.InitTaskfile(); err != nil {
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if err := task.InitTaskfile(wd); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user