Skip to content

Commit

Permalink
Remove bash-specific syntax in build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuanliang authored and thockin committed Nov 10, 2023
1 parent b9a2380 commit 507fc4d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

set -o errexit
set -o nounset
set -o pipefail

if [ -z "${OS:-}" ]; then
echo "OS must be set"
Expand All @@ -36,7 +35,7 @@ export GOARCH="${ARCH}"
export GOOS="${OS}"
export GO111MODULE=on

if [[ "${DEBUG:-}" == 1 ]]; then
if [ "${DEBUG:-}" = 1 ]; then
# Debugging - disable optimizations and inlining
gogcflags="all=-N -l"
goasmflags=""
Expand Down
3 changes: 1 addition & 2 deletions build/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

set -o errexit
set -o nounset
set -o pipefail

export CGO_ENABLED=0
export GO111MODULE=on
Expand All @@ -25,7 +24,7 @@ cd tools >/dev/null
go install github.com/golangci/golangci-lint/cmd/golangci-lint
cd - >/dev/null

echo -n "Running golangci-lint: "
printf "Running golangci-lint: "
ERRS=$(golangci-lint run "$@" 2>&1 || true)
if [ -n "${ERRS}" ]; then
echo "FAIL"
Expand Down
1 change: 0 additions & 1 deletion build/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

set -o errexit
set -o nounset
set -o pipefail

export CGO_ENABLED=0
export GO111MODULE=on
Expand Down

0 comments on commit 507fc4d

Please sign in to comment.