fix(sudoloop): stop update sudo from taking extra flags, fixes #1427

This commit is contained in:
jguer committed 2021-03-13 12:06:31 +01:00
1 parent 348f2de85c
commit b7f730a59a
1 file changed
+1 -3
+1 -3
View File
@@ -28,9 +28,7 @@ func sudoLoop() {
func updateSudo() {
for {
mSudoFlags := strings.Fields(config.SudoFlags)
mSudoFlags = append([]string{"-v"}, mSudoFlags...)
err := config.Runtime.CmdRunner.Show(exec.Command(config.SudoBin, mSudoFlags...))
err := config.Runtime.CmdRunner.Show(exec.Command(config.SudoBin, "-v"))
if err != nil {
fmt.Fprintln(os.Stderr, err)
} else {