summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/minwinsvc/svc_windows.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/minwinsvc/svc_windows.go b/modules/minwinsvc/svc_windows.go
index c6e87e29df..609bf06d3a 100644
--- a/modules/minwinsvc/svc_windows.go
+++ b/modules/minwinsvc/svc_windows.go
@@ -18,10 +18,11 @@ var (
onExit func()
guard sync.Mutex
skip, _ = strconv.ParseBool(os.Getenv("SKIP_MINWINSVC"))
+ isSSH = os.Getenv("SSH_ORIGINAL_COMMAND") != ""
)
func init() {
- if skip {
+ if skip || isSSH {
return
}
interactive, err := svc.IsAnInteractiveSession()