Skip to content

Commit 9b7b1f7

Browse files
improve fix only for linux
1 parent 1348246 commit 9b7b1f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/tools-installer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"os"
1111
"os/exec"
1212
"path/filepath"
13+
"runtime"
1314
"strings"
1415
"text/template"
1516

@@ -167,7 +168,7 @@ func installRuntimeTool(name string, toolInfo *plugins.ToolInfo, registry string
167168
cmd := exec.Command(packageManagerBinary, strings.Split(installCmd, " ")...)
168169

169170
// Special handling for ESLint installation in Linux (WSL) environment
170-
if toolInfo.Name == "eslint" {
171+
if toolInfo.Name == "eslint" && runtime.GOOS == "linux" {
171172
// Get node binary directory to add to PATH
172173
nodeBinary, exist := runtimeInfo.Binaries["node"]
173174
if exist {

0 commit comments

Comments
 (0)