chore: use -z for checking for empty value

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-17 14:41:49 -05:00
committed by GitHub
parent 80b782e6ed
commit 59aef9a408

View File

@@ -22,7 +22,7 @@ log-fail() {
ensure-environment() {
local FREE_MEMORY
if [ ! $DOKKU_TAG ]; then
if [[ -z "$DOKKU_TAG" ]]; then
echo "Preparing to install $DOKKU_REPO..."
else
echo "Preparing to install $DOKKU_TAG from $DOKKU_REPO..."