diff --git a/ci-build.sh b/ci-build.sh index b3c39ee..ac535e2 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh -GO = $(which go) +export GO=$(which go) +$GO version mkdir build @@ -13,10 +14,10 @@ export VERSION_STRING buildpath="build/$(uname)/gostations" -${GO} mod vendor -${GO} mod tidy +$GO mod vendor +$GO mod tidy -${GO} build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" +$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" "$buildpath" -v