examine homedir under cygwin

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-13 19:41:25 -07:00
parent eafbc6d8a3
commit 277227c147
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ package main
import "log" import "log"
import "fmt" import "fmt"
import "time" import "time"
import "os/user"
import "git.wit.com/wit/shell" import "git.wit.com/wit/shell"
@ -14,6 +15,8 @@ var filename string
func main() { func main() {
shell.Quiet(false) 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 filename = shell.Execname("cloud-control-panel") // returns the right name for each OS