Skip to content

Commit 6074983

Browse files
committed
fix linting
1 parent 012de26 commit 6074983

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/apps.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import (
55
"fmt"
66
"io"
77
"io/ioutil"
8-
"os"
8+
"log"
9+
"os"
910
"os/exec"
1011
"strings"
1112

@@ -88,7 +89,10 @@ func (a Apps) brewInstall() error {
8889

8990
go func() {
9091
defer stdin.Close()
91-
io.WriteString(stdin, a.SudoPassword)
92+
_, err := io.WriteString(stdin, a.SudoPassword)
93+
if err != nil {
94+
log.Fatalf("brew install write sudo: %+v", err)
95+
}
9296
}()
9397

9498
_, err = c.CombinedOutput()

0 commit comments

Comments
 (0)