From 277227c147dfa9243c211a1ef7c1192c9513f093 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 13 Jun 2019 19:41:25 -0700 Subject: [PATCH] examine homedir under cygwin Signed-off-by: Jeff Carr --- build/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/build.go b/build/build.go index f68c294..83dd7e2 100644 --- a/build/build.go +++ b/build/build.go @@ -7,6 +7,7 @@ package main import "log" import "fmt" import "time" +import "os/user" import "git.wit.com/wit/shell" @@ -14,6 +15,8 @@ var filename string func main() { shell.Quiet(false) + user, _ := user.Current() + log.Println("user.HomeDir =", user.HomeDir) filename = shell.Execname("cloud-control-panel") // returns the right name for each OS