Skip to content

Commit

Permalink
Discard output of rpm -q.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed May 3, 2019
1 parent 92842da commit 846dcc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion update-golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ check_package() {
if has_cmd dpkg && dpkg -s golang-go 2>/dev/null | grep ^Status | grep -q installed; then
msg warning: golang-go is installed, you should remove it: sudo apt remove golang-go
fi
if has_cmd rpm && rpm -q golang 2>/dev/null; then
if has_cmd rpm && rpm -q golang >/dev/null 2>/dev/null; then
msg warning: golang is installed, you should remove it: sudo yum remove golang
fi
}
Expand Down
2 changes: 1 addition & 1 deletion update-golang.sh.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2c4266534aa2f448f01c78b8c54c7a2525af5773f02f9f21bbb54158586cc486 update-golang.sh
e9606dec554bc9f5003b810c124ac2af8ba571a4154b234bcaae167f1f7e2b7a update-golang.sh

0 comments on commit 846dcc9

Please sign in to comment.