1
0

fix: avoid stderr

This commit is contained in:
dump_stack() 2023-05-22 06:01:40 +00:00
parent 632e4f5ffc
commit c076db3505
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func (centos CentOS) Packages() (pkgs []string, err error) {
return
}
cmd := "yum search kernel --showduplicates " +
cmd := "yum search kernel --showduplicates 2>/dev/null " +
"| grep '^kernel-[0-9]' " +
"| grep -v src " +
"| cut -d ' ' -f 1"

View File

@ -48,7 +48,7 @@ func (ol OracleLinux) Packages() (pkgs []string, err error) {
return
}
cmd := "yum search kernel --showduplicates " +
cmd := "yum search kernel --showduplicates 2>/dev/null " +
"| grep '^kernel-[0-9]\\|^kernel-uek-[0-9]' " +
"| grep -v src " +
"| cut -d ' ' -f 1"