Skip to content

Commit 14aee3a

Browse files
committed
Add #!/bin/bash and replace ... by $(...) in build.sh
1 parent 85a052f commit 14aee3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
#!/bin/bash
2+
13
GOOS=$1
24
GOARCH=$2
35
EXT=
46

57
if [ "$GOOS" == "" ]; then
6-
GOOS=`go env GOOS`
8+
GOOS=$(go env GOOS)
79
fi
810

911
if [ "$GOARCH" == "" ]; then
10-
GOARCH=`go env GOARCH`
12+
GOARCH=$(go env GOARCH)
1113
fi
1214

1315
if [ "$GOOS" == "windows" ]; then

0 commit comments

Comments
 (0)