Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
config_unix.go 512 B
Newer Older
// +build linux darwin freebsd openbsd

package commands

import (
Kamil Trzcinski's avatar
Kamil Trzcinski committed
	"os"
	"path/filepath"

	"gitlab.com/gitlab-org/gitlab-ci-multi-runner/helpers"
	if os.Getuid() == 0 {
	} else if homeDir := helpers.GetHomeDir(); homeDir != "" {
		return filepath.Join(homeDir, ".gitlab-runner")
	} else if currentDir := helpers.GetCurrentWorkingDirectory(); currentDir != "" {
	panic("Cannot get default config file location")