Fix the if statements for checking if env is set.

This commit is contained in:
Eric Pfeiffer 2017-04-14 12:31:09 -05:00
parent 94a383bea9
commit ae01a9fd49
1 changed files with 2 additions and 2 deletions

View File

@ -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