1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00
Files
task/internal/homefix/homefix_windows.go

16 lines
197 B
Go
Raw Normal View History

package homefix
import (
"os"
"github.com/mitchellh/go-homedir"
)
func init() {
if os.Getenv("HOME") == "" {
if home, err := homedir.Dir(); err == nil {
os.Setenv("HOME", home)
}
}
}