From ae01a9fd49fb4095d38b50c2125e98ee0c2dde19 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer Date: Fri, 14 Apr 2017 12:31:09 -0500 Subject: [PATCH] Fix the if statements for checking if env is set. --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index f2458374..ddfa2752 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -if [ -n ${PHP_VERSION} ]; then +if [ -n "${PHP_VERSION}" ]; then cp env-example .env docker-compose build docker images fi -if [ -n ${HUGO_VERSION} ]; then +if [ -n "${HUGO_VERSION}" ]; then HUGO_PACKAGE=hugo_${HUGO_VERSION}_Linux-64bit HUGO_BIN=hugo_${HUGO_VERSION}_linux_amd64