From 80b782e6ed10c51fa52807701b50cf3531f79fb8 Mon Sep 17 00:00:00 2001 From: Waviest <31796727+WaviestBalloon@users.noreply.github.com> Date: Sat, 16 Jan 2021 23:56:36 +0000 Subject: [PATCH 1/2] Update bootstrap.sh --- bootstrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5b3b9db62..4165214ce 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,7 +22,11 @@ log-fail() { ensure-environment() { local FREE_MEMORY - echo "Preparing to install $DOKKU_TAG from $DOKKU_REPO..." + if [ ! $DOKKU_TAG ]; then + echo "Preparing to install $DOKKU_REPO..." + else + echo "Preparing to install $DOKKU_TAG from $DOKKU_REPO..." + fi hostname -f >/dev/null 2>&1 || { log-fail "This installation script requires that you have a hostname set for the instance. Please set a hostname for 127.0.0.1 in your /etc/hosts" From 59aef9a40850040b84b1464318c13f6e9656929b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 17 Jan 2021 14:41:49 -0500 Subject: [PATCH 2/2] chore: use -z for checking for empty value --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 4165214ce..8deaefe31 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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..."