Skip to content

Commit 92842da

Browse files
author
udhos
committed
Warn about golang rpm.
1 parent 507f559 commit 92842da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

update-golang.sh

+3
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ check_package() {
403403
if has_cmd dpkg && dpkg -s golang-go 2>/dev/null | grep ^Status | grep -q installed; then
404404
msg warning: golang-go is installed, you should remove it: sudo apt remove golang-go
405405
fi
406+
if has_cmd rpm && rpm -q golang 2>/dev/null; then
407+
msg warning: golang is installed, you should remove it: sudo yum remove golang
408+
fi
406409
}
407410

408411
# update pre-commit hook

update-golang.sh.sha256

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6beb10c818f6dfc52d03803672b526acfabcb9b3fab231996e62366b95c0dd64 update-golang.sh
1+
2c4266534aa2f448f01c78b8c54c7a2525af5773f02f9f21bbb54158586cc486 update-golang.sh

0 commit comments

Comments
 (0)