diff --git a/update-golang.sh b/update-golang.sh index 590b0d8..53b913e 100755 --- a/update-golang.sh +++ b/update-golang.sh @@ -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 diff --git a/update-golang.sh.sha256 b/update-golang.sh.sha256 index 9079ea6..e1c49d9 100644 --- a/update-golang.sh.sha256 +++ b/update-golang.sh.sha256 @@ -1 +1 @@ -6beb10c818f6dfc52d03803672b526acfabcb9b3fab231996e62366b95c0dd64 update-golang.sh +2c4266534aa2f448f01c78b8c54c7a2525af5773f02f9f21bbb54158586cc486 update-golang.sh