Skip to content

Commit

Permalink
Warn about golang rpm.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed May 3, 2019
1 parent 507f559 commit 92842da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions update-golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ 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
msg warning: golang is installed, you should remove it: sudo yum remove golang
fi
}

# update pre-commit hook
Expand Down
2 changes: 1 addition & 1 deletion update-golang.sh.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6beb10c818f6dfc52d03803672b526acfabcb9b3fab231996e62366b95c0dd64 update-golang.sh
2c4266534aa2f448f01c78b8c54c7a2525af5773f02f9f21bbb54158586cc486 update-golang.sh

0 comments on commit 92842da

Please sign in to comment.