From 7a5385239e0aaa6ab2282d34723738a70393497d Mon Sep 17 00:00:00 2001 From: Max Dymond Date: Mon, 2 Dec 2019 11:53:18 +0000 Subject: [PATCH] Use sh string comparison Apparently [[ doesn't exist in the build container, so use sh string comparison. Fixes #49 Signed-off-by: Max Dymond --- CHANGELOG.md | 1 + build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03516fc..81ca52c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Status: Available for use ### Added - Add support for specifying Dockerfile build target - MINOR - Add `announce` support for notifying Slack of new changes - MINOR +- Fix up build.sh for Linux builds - PATCH ## [0.4.1] - 2019-11-12 ### Changed diff --git a/build.sh b/build.sh index 3a65088..a748ae2 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ LABEL=${TRAVIS_TAG}-${TRAVIS_OS_NAME} rm -rf target echo "Starting release build for ${LABEL}" -if [[ ${TRAVIS_OS_NAME} == "linux" ]] +if [ ${TRAVIS_OS_NAME} = "linux" ] then echo "Building statically linked linux binary" docker run --rm -v $(pwd):/home/rust/src -w /home/rust/src ekidd/rust-musl-builder \