Skip to content
Snippets Groups Projects
Forked from GitLab.org / gitlab-runner
9882 commits behind the upstream repository.
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()
}