diff options
author | Felix Hanley <felix@userspace.com.au> | 2020-11-16 21:09:53 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 10:09:53 +0000 |
commit | 41c0b5acfb3bbb2a4b1985862421f6fb1b11772d (patch) | |
tree | 5e71353e378d34997d6653e1789fe817e0e5d8b5 /build.sh | |
parent | cb41c992f757b3007f01460c140a06b1598d15c8 (diff) |
Update build script to run on any POSIX (#1577)
Signed-off-by: Felix Hanley <felix@userspace.com.au>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/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 |