Skip to content

Commit 32a2295

Browse files
committed
Fix USE_FASTBOOT: unbound variable error when variable is not set
Explicitly default to an empty value, to work with `set -u`.
1 parent a423d44 commit 32a2295

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/ember.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -ue
33

44
export FASTBOOT_DISABLED
55

6-
if [ -z "${USE_FASTBOOT}" ]; then
6+
if [ -z "${USE_FASTBOOT-}" ]; then
77
unset FASTBOOT_DISABLED
88
else
99
FASTBOOT_DISABLED=1

script/start-web.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22
set -ue
33

4-
if [[ -z "${USE_FASTBOOT}" ]]; then
4+
if [[ -z "${USE_FASTBOOT-}" ]]; then
55
unset USE_FASTBOOT
66
bin/start-nginx ./target/release/server
77
else

0 commit comments

Comments
 (0)