Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 642ff9f

Browse files
committed
updated
1 parent 4b6f72a commit 642ff9f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

bin/compile

+8-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ mkdir $GOPATH
2424
PATH=$PATH:$BUILD/local/go/bin:$GOPATH/bin export PATH
2525

2626
mkdir -p $BUILD/.profile.d
27-
echo 'GOPATH=$HOME/go' > $BUILD/.profile.d/go.sh
28-
echo 'PATH=$PATH:$HOME/local/go/bin:$GOPATH/bin' > $BUILD/.profile.d/path.sh
27+
echo '#extra vars
28+
export GOPATH=$HOME/go
29+
export GOROOT=$HOME/local/go
30+
31+
PATH=$PATH:$HOME/local/go/bin:$GOPATH/bin
32+
33+
' > $BUILD/.profile.d/vars.sh
2934

3035
#print version
3136
go version
@@ -36,9 +41,9 @@ chmod +x $BUILD/run
3641
if [ -f $BUILD/compile ]; then
3742
echo "running user compile script..."
3843
sh $BUILD/compile "$@"
44+
rm $BUILD/compile
3945
fi
4046

41-
4247
echo "Compiled!"
4348

4449
exit 0

0 commit comments

Comments
 (0)