File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010type Rhel struct {}
1111
1212func (Rhel ) GetSecurityUpdates () int {
13- cmd := exec .Command ("sh" , "-c" , "yes | dnf updateinfo list --sec-severity=Critical --sec-severity=Important --all | wc -l" )
13+ cmd := exec .Command ("sh" , "-c" , "dnf updateinfo list --assumeyes --sec-severity=Critical --sec-severity=Important --all | wc -l" )
1414 out , err := cmd .Output ()
1515 if err != nil {
1616 log .Printf ("Error running dnf: %v" , err )
@@ -20,7 +20,7 @@ func (Rhel) GetSecurityUpdates() int {
2020}
2121
2222func (Rhel ) GetTotalUpdates () int {
23- cmd := exec .Command ("sh" , "-c" , "yes | dnf updateinfo list --all | wc -l" )
23+ cmd := exec .Command ("sh" , "-c" , "dnf updateinfo list --assumeyes --all | wc -l" )
2424 out , err := cmd .Output ()
2525 if err != nil {
2626 log .Printf ("Error running dnf: %v" , err )
You can’t perform that action at this time.
0 commit comments