Forked from
GitLab.org / gitlab-runner
9882 commits behind the upstream repository.
-
Kamil Trzciński authoredKamil Trzciński authored
home_dir.go 240 B
package helpers
import (
"github.com/docker/docker/pkg/homedir"
"os"
)
func GetCurrentWorkingDirectory() string {
dir, err := os.Getwd()
if err == nil {
return dir
}
return ""
}
func GetHomeDir() string {
return homedir.Get()
}