|
|
@ -18,10 +18,11 @@ var ( |
|
|
|
onExit func() |
|
|
|
onExit func() |
|
|
|
guard sync.Mutex |
|
|
|
guard sync.Mutex |
|
|
|
skip, _ = strconv.ParseBool(os.Getenv("SKIP_MINWINSVC")) |
|
|
|
skip, _ = strconv.ParseBool(os.Getenv("SKIP_MINWINSVC")) |
|
|
|
|
|
|
|
isSSH = os.Getenv("SSH_ORIGINAL_COMMAND") != "" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
if skip { |
|
|
|
if skip || isSSH { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
interactive, err := svc.IsAnInteractiveSession() |
|
|
|
interactive, err := svc.IsAnInteractiveSession() |
|
|
|