Update build script to run on any POSIX (#1577)

Signed-off-by: Felix Hanley <felix@userspace.com.au>
This commit is contained in:
Felix Hanley 2020-11-16 21:09:53 +11:00 committed by GitHub
parent cb41c992f7
commit 41c0b5acfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/sh -eu
export GIT_COMMIT=$(git rev-list -1 HEAD) && \
GOOS=js GOARCH=wasm go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -o main.wasm ./cmd/dendritejs
GOOS=js GOARCH=wasm go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -o main.wasm ./cmd/dendritejs