mirror of
https://github.com/go-task/task.git
synced 2025-05-19 22:33:35 +02:00
Use relative path
This commit is contained in:
parent
5b1d106724
commit
7cab3997c1
5
task.go
5
task.go
@ -6,15 +6,12 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
|
||||||
|
|
||||||
"github.com/kardianos/osext"
|
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
CurrentDirectory, _ = osext.ExecutableFolder()
|
TaskFilePath = "Taskfile.yml"
|
||||||
TaskFilePath = filepath.Join(CurrentDirectory, "Taskfile.yml")
|
|
||||||
ShExists bool
|
ShExists bool
|
||||||
ShPath string
|
ShPath string
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user