Commit 8b08b37f authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] go: remove unused install script

parent 63f1a7fa
Pipeline #4325 skipped
post_upgrade() {
# Backup any previous /usr/lib/go/bin directory
if [ -d /usr/lib/go/bin -a ! -L /usr/lib/go/bin ]; then
mv /usr/lib/go/bin /usr/lib/go/bin.pacnew
# Point /usr/lib/go/bin to /usr/bin instead
# This is to make go get and
# then running the gotour executable work out of the box.
# Also, /usr/bin is the place for system-wide executables,
# not /usr/lib/go/bin. Users should use different paths by
# setting the appropriate environment variables.
ln -sf /usr/bin /usr/lib/go/bin
# Friendly message to the user
echo "Example use of the \"go\" tool as a user:"
echo " mkdir ~/go"
echo " export GOPATH=~/go"
echo " go get"
post_install() {
pre_remove() {
if [ -c /usr/lib/go/bin ]; then
rmdir --ignore-fail-on-non-empty /usr/lib/go/bin
if [ -L /usr/lib/go/bin ]; then
rm /usr/lib/go/bin
# vim:set ts=2 sw=2 et:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment