Skip to content

Commit 670aa33

Browse files
committed
fix sudo refresh on macOS
1 parent e493eef commit 670aa33

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/runner/sudo.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ func StartSudoRefresh(ctx context.Context) {
3131
case <-ctx.Done():
3232
return
3333
case <-ticker.C:
34-
exec.Command("sudo", "-n", "-v").Run()
34+
cmd := exec.Command("sudo", "-n", "-v")
35+
cmd.Stdin = os.Stdin
36+
cmd.Run()
3537
}
3638
}
3739
}()

0 commit comments

Comments
 (0)