Update build script to run on any POSIX
MODIFY
build-dendritejs.sh
build-dendritejs.sh
-#!/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

MODIFY
build.sh
build.sh
-#!/bin/bash -eu
+#!/bin/sh -eu
# Put installed packages into ./bin
export GOBIN=$PWD/`dirname $0`/bin
@@ -7,7 +7,7 @@ if [ -d ".git" ]
then
export BUILD=`git rev-parse --short HEAD || ""`
export BRANCH=`(git symbolic-ref --short HEAD | tr -d \/ ) || ""`
- if [[ $BRANCH == "master" ]]
+ if [ "$BRANCH" = master ]
then
export BRANCH=""
fi

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

Signed-off-by: Felix Hanley <felix@userspace.com.au>