Skip to content

Commit 03a609f

Browse files
committed
Update example.
1 parent 65ba9a6 commit 03a609f

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

README.md

+11-19
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@ Example
6969
lab@ubu1:~$
7070
lab@ubu1:~$ git clone https://github.com/udhos/update-golang
7171
Cloning into 'update-golang'...
72-
remote: Counting objects: 468, done.
73-
remote: Total 468 (delta 0), reused 0 (delta 0), pack-reused 468
74-
Receiving objects: 100% (468/468), 63.60 KiB | 140.00 KiB/s, done.
75-
Resolving deltas: 100% (244/244), done.
72+
remote: Counting objects: 481, done.
73+
remote: Compressing objects: 100% (11/11), done.
74+
remote: Total 481 (delta 4), reused 9 (delta 2), pack-reused 468
75+
Receiving objects: 100% (481/481), 70.22 KiB | 125.00 KiB/s, done.
76+
Resolving deltas: 100% (248/248), done.
7677
lab@ubu1:~$
77-
lab@ubu1:~$ cd update-golang/
78+
lab@ubu1:~$ cd update-golang
7879
lab@ubu1:~/update-golang$ sudo ./update-golang.sh
7980
update-golang.sh: version 0.15
8081
update-golang.sh: find_latest: found last release: 1.10.2
8182
update-golang.sh: user: uid=0(root) gid=0(root) groups=0(root)
83+
update-golang.sh: RELEASE_LIST=https://golang.org/doc/devel/release.html
8284
update-golang.sh: SOURCE=https://storage.googleapis.com/golang
8385
update-golang.sh: DESTINATION=/usr/local
8486
update-golang.sh: RELEASE=1.10.2
@@ -91,17 +93,7 @@ Example
9193
update-golang.sh: DEBUG=
9294
update-golang.sh: will install golang go1.10.2.linux-amd64 as: /usr/local/go
9395
update-golang.sh: https://storage.googleapis.com/golang/go1.10.2.linux-amd64.tar.gz is remote
94-
--2018-05-08 11:08:00-- https://storage.googleapis.com/golang/go1.10.2.linux-amd64.tar.gz
95-
Resolving storage.googleapis.com (storage.googleapis.com)... 172.217.162.176, 2800:3f0:4001:817::2010
96-
Connecting to storage.googleapis.com (storage.googleapis.com)|172.217.162.176|:443... connected.
97-
HTTP request sent, awaiting response... 200 OK
98-
Length: 132481801 (126M) [application/octet-stream]
99-
Saving to: ‘/usr/local/go1.10.2.linux-amd64.tar.gz’
100-
101-
/usr/local/go1.10.2.linux-amd64.tar.gz 100%[=====================================================================================>] 126.34M 10.4MB/s in 12s
102-
103-
2018-05-08 11:08:13 (10.6 MB/s) - ‘/usr/local/go1.10.2.linux-amd64.tar.gz’ saved [132481801/132481801]
104-
96+
update-golang.sh: no need to download - file cached: /usr/local/go1.10.2.linux-amd64.tar.gz
10597
update-golang.sh: remove_old_link: not found symlink for old install
10698
update-golang.sh: untar: tar -x -f /usr/local/go1.10.2.linux-amd64.tar.gz
10799
update-golang.sh: path: removing old settings from: /etc/profile.d/golang_path.sh
@@ -111,10 +103,10 @@ Example
111103
update-golang.sh: testing: /usr/local/go/bin/go version
112104
update-golang.sh: go version go1.10.2 linux/amd64
113105
update-golang.sh: /usr/local/go/bin/go version: SUCCESS
114-
update-golang.sh: testing: /usr/local/go/bin/go run /tmp/hello-tmpkpkMTIlc.go
106+
update-golang.sh: testing: /usr/local/go/bin/go run /tmp/hello-tmpv1bX1rQN.go
115107
update-golang.sh: hello, world
116-
update-golang.sh: /usr/local/go/bin/go run /tmp/hello-tmpkpkMTIlc.go: SUCCESS
117-
update-golang.sh: cleanup: /tmp/tmp.IReSzeOpfA
108+
update-golang.sh: /usr/local/go/bin/go run /tmp/hello-tmpv1bX1rQN.go: SUCCESS
109+
update-golang.sh: cleanup: /tmp/tmp.tcNY25eXNl
118110
lab@ubu1:~/update-golang$
119111

120112
Customization

0 commit comments

Comments
 (0)