File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -7,28 +7,20 @@ C_INCLUDE_PATH=$(nc-config --includedir)
7
7
export C_INCLUDE_PATH
8
8
9
9
wget -q -O go.tar.gz https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
10
- tar -xf go.tar.gz
10
+ rm -rf go && tar -xf go.tar.gz && rm -f go.tar.gz
11
11
12
- mkdir /gopath
13
12
export GOROOT=/go
14
- export GOPATH=/gopath
13
+ export GOPATH=/gsky/ gopath
15
14
export PATH=" $PATH :$GOROOT /bin"
16
15
17
- (set -xeu
18
- go get github.com/nci/gsky
19
- if [ " $gsky_repo " != " $DEFAULT_GSKY_REPO " ]
20
- then
21
- rm -rf $GOPATH /src/github.com/nci/gsky
22
- git clone " $gsky_repo " $GOPATH /src/github.com/nci/gsky
23
- fi
16
+ rm -rf $GOPATH && mkdir $GOPATH
17
+ git clone " $gsky_repo " $GOPATH /src/github.com/nci/gsky
24
18
19
+ (set -xeu
25
20
cd $GOPATH /src/github.com/nci/gsky
26
21
27
22
mkdir -p /gsky
28
23
./configure --prefix=/gsky --bindir=/gsky/bin --sbindir=/gsky/bin --libexecdir=/gsky/bin
29
24
make all
30
25
make install
31
26
)
32
-
33
- rm -f go.tar.gz
34
- rm -rf gopath
You can’t perform that action at this time.
0 commit comments