diff --git a/README.md b/README.md index 2460228..598499e 100644 --- a/README.md +++ b/README.md @@ -52,38 +52,44 @@ Example ======= $ sudo ./update-golang.sh - update-golang.sh: version 0.3 - SOURCE=https://storage.googleapis.com/golang - DESTINATION=/usr/local - RELEASE=1.8.1 - OS=linux - ARCH=amd64 - PROFILED=/etc/profile.d/golang_path.sh - CACHE=/usr/local + [sudo] password for lab: + update-golang.sh: version 0.5 + update-golang.sh: user: uid=0(root) gid=0(root) groups=0(root) + update-golang.sh: SOURCE=https://storage.googleapis.com/golang + update-golang.sh: DESTINATION=/usr/local + update-golang.sh: RELEASE=1.8.1 + update-golang.sh: OS=linux + update-golang.sh: ARCH=amd64 + update-golang.sh: PROFILED=/etc/profile.d/golang_path.sh + update-golang.sh: CACHE=/usr/local + update-golang.sh: GOPATH= update-golang.sh: will install golang go1.8.1.linux-amd64 as: /usr/local/go update-golang.sh: https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz is remote - --2017-04-19 17:47:45-- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz - Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.222.112 - Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.222.112|:443... connected. + --2017-05-03 12:18:33-- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz + Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.202.16 + Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.202.16|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 91277742 (87M) [application/x-gzip] - Saving to: /usr/local/go1.8.1.linux-amd64.tar.gz + Saving to: ‘/usr/local/go1.8.1.linux-amd64.tar.gz’ - /usr/local/go1.8.1.linux-amd64.tar.gz 100%[==========================================================================================>] 87,05M 11,2MB/s in 8,4s + /usr/local/go1.8.1.linux-amd64.tar.gz 100%[==========================================================================================================>] 87.05M 11.3MB/s in 8.4s - 2017-04-19 17:47:54 (10,4 MB/s) - /usr/local/go1.8.1.linux-amd64.tar.gz saved [91277742/91277742] + 2017-05-03 12:18:42 (10.4 MB/s) - ‘/usr/local/go1.8.1.linux-amd64.tar.gz’ saved [91277742/91277742] - update-golang.sh: not found symlink for old install - update-golang.sh: remove old link: /usr/local/go - update-golang.sh: untar: rm -rf /usr/local/go1.8.1.linux-amd64 - update-golang.sh: untar: tar xf /usr/local/go1.8.1.linux-amd64.tar.gz + update-golang.sh: remove_old_link: not found symlink for old install + update-golang.sh: untar: tar -x -f /usr/local/go1.8.1.linux-amd64.tar.gz update-golang.sh: path: removing old settings from: /etc/profile.d/golang_path.sh update-golang.sh: path: issuing new /usr/local/go/bin to /etc/profile.d/golang_path.sh + update-golang.sh: path: issuing /home/lab/go/bin to /etc/profile.d/golang_path.sh update-golang.sh: golang go1.8.1.linux-amd64 installed at: /usr/local/go update-golang.sh: testing: /usr/local/go/bin/go version - go version go1.8.1 linux/amd64 - update-golang.sh: SUCCESS - $ + update-golang.sh: go version go1.8.1 linux/amd64 + update-golang.sh: /usr/local/go/bin/go version: SUCCESS + update-golang.sh: testing: /usr/local/go/bin/go run /home/lab/update-golang/hello.go + update-golang.sh: hello, world + update-golang.sh: /usr/local/go/bin/go run /home/lab/update-golang/hello.go: SUCCESS + update-golang.sh: cleanup: /tmp/tmp.uVagnlB8QA + $ Customization =============