From 32a2295275936c497804021f4dddb9f7a0abb316 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Mon, 2 Dec 2019 22:23:03 -0500 Subject: [PATCH] Fix `USE_FASTBOOT: unbound variable` error when variable is not set Explicitly default to an empty value, to work with `set -u`. --- script/ember.sh | 2 +- script/start-web.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/ember.sh b/script/ember.sh index 50c7c68e75a..4029d3ef524 100755 --- a/script/ember.sh +++ b/script/ember.sh @@ -3,7 +3,7 @@ set -ue export FASTBOOT_DISABLED -if [ -z "${USE_FASTBOOT}" ]; then +if [ -z "${USE_FASTBOOT-}" ]; then unset FASTBOOT_DISABLED else FASTBOOT_DISABLED=1 diff --git a/script/start-web.sh b/script/start-web.sh index dce52263cd1..bcf62b29efc 100755 --- a/script/start-web.sh +++ b/script/start-web.sh @@ -1,7 +1,7 @@ #! /bin/bash set -ue -if [[ -z "${USE_FASTBOOT}" ]]; then +if [[ -z "${USE_FASTBOOT-}" ]]; then unset USE_FASTBOOT bin/start-nginx ./target/release/server else