Skip to content

Commit

Permalink
Fix USE_FASTBOOT: unbound variable error when variable is not set
Browse files Browse the repository at this point in the history
Explicitly default to an empty value, to work with `set -u`.
  • Loading branch information
jtgeibel committed Dec 3, 2019
1 parent a423d44 commit 32a2295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/ember.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/start-web.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 32a2295

Please sign in to comment.