go_setup.sh 308 B

12345678910111213
  1. #!/bin/sh
  2. # Milis Linux Hızlı Go Derleyici Kurucu 2022
  3. [ -z $1 ] && exit 1
  4. version=$1
  5. mkdir -p $HOME/{.cache,.local}
  6. cd $HOME/.cache
  7. wget https://go.dev/dl/go${version}.linux-amd64.tar.gz
  8. rm -rf ../.local/go && tar -C ../.local -xzf go${version}.linux-amd64.tar.gz
  9. export PATH=$PATH:$HOME/.local/go/bin