Skip to content

Commit 45de869

Browse files
authored
safer comparison of MODE env var
fixes #22 As mentioned there in the current setup one would still have the sh parser trip over a use case like ``` export MODE="my mode" ./start.sh: line 4: [: too many arguments ```
1 parent 01a4f43 commit 45de869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/env bash
22
set -eu
3-
if [ ${MODE:-""} == "development" ]; then
3+
if [ "${MODE}" == "development" ]; then
44
if [ -f /app/requirements.txt ]; then pip install -r /app/requirements.txt; fi
55
exec python web.py
66
else

0 commit comments

Comments
 (0)