From 8560e5b5a988879a84e6af471719ea734319b199 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 12 Sep 2022 10:22:04 -0400 Subject: [PATCH] fix: ensure we check for the right binary Closes #64 --- bin/compile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 111f694..ca5f0c2 100755 --- a/bin/compile +++ b/bin/compile @@ -67,13 +67,17 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}" fi -if [[ ! -f "sigil" ]]; then +if [[ ! -f "gliderlabs-sigil-amd64" ]]; then echo "-----> Download and unzip sigil ${SIGIL_VERSION} via http" curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" -o "${SIGIL_TARBALL}" tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}" fi mkdir -p "$BUILD_DIR/sigil" +if [[ ! -f "gliderlabs-sigil-amd64" ]]; then + echo " ! Missing gliderlabs-sigil-amd64 binary" + exit 1 +fi cp -r gliderlabs-sigil-amd64 "$BUILD_DIR/sigil/sigil" cd "nginx-${NGINX_VERSION}"