chore: use -z for checking for empty value

This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2021-01-17 14:41:49 -05:00
1 parent 80b782e6ed
commit 59aef9a408
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ log-fail() {
ensure-environment() { ensure-environment() {
local FREE_MEMORY local FREE_MEMORY
if [ ! $DOKKU_TAG ]; then if [[ -z "$DOKKU_TAG" ]]; then
echo "Preparing to install $DOKKU_REPO..." echo "Preparing to install $DOKKU_REPO..."
else else
echo "Preparing to install $DOKKU_TAG from $DOKKU_REPO..." echo "Preparing to install $DOKKU_TAG from $DOKKU_REPO..."