Skip to content

Commit 2db8873

Browse files
committed
workaround for linux post_install
1 parent ee5d44e commit 2db8873

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/download.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,10 @@ func (t *Tools) installDrivers(location string) error {
441441
if ok == 6 {
442442
os.Chdir(location)
443443
oscmd := exec.Command("post_install.bat")
444-
TellCommandNotToSpawnShell(oscmd)
444+
if runtime.GOOS != "linux" {
445+
// spawning a shell could be the only way to let the user type his password
446+
TellCommandNotToSpawnShell(oscmd)
447+
}
445448
t.Logger.Println(oscmd)
446449
err = oscmd.Run()
447450
t.Logger.Println(err)

0 commit comments

Comments
 (0)