examine homedir under cygwin
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
eafbc6d8a3
commit
277227c147
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue