Skip to content

Commit

Permalink
Tau - correctly quote env values
Browse files Browse the repository at this point in the history
  • Loading branch information
samaaron committed Mar 14, 2023
1 parent 5ae588f commit ace5312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/server/beam/tau/boot-lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ cd "${SCRIPT_DIR}"

echo "Booting Tau on Linux..."

if [ $TAU_ENV = "prod" ]
if [ "$TAU_ENV" = "prod" ]
then
# Ensure prod env has been setup with:
# export MIX_ENV=dev
# mix tau.release

export MIX_ENV=prod
_build/prod/rel/tau/bin/tau start > /dev/null 2>&1
elif [ $TAU_ENV = "dev" ]
elif [ "$TAU_ENV" = "dev" ]
then
# Ensure prod env has been setup with:
# export MIX_ENV=dev
Expand All @@ -22,7 +22,7 @@ then
export MIX_ENV=dev
mix assets.deploy.dev
mix run --no-halt > log/tau_stdout.log 2>&1
elif [ $TAU_ENV = "test" ]
elif [ "$TAU_ENV" = "test" ]
then
export MIX_ENV=test
export TAU_MIDI_ENABLED=false
Expand Down
6 changes: 3 additions & 3 deletions app/server/beam/tau/boot-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ cd "${SCRIPT_DIR}"

echo "Booting Tau on macOS..."

if [ $TAU_ENV = "prod" ]
if [ "$TAU_ENV" = "prod" ]
then
# Ensure prod env has been setup with:
# export MIX_ENV=dev
# mix tau.release

export MIX_ENV=prod
_build/prod/rel/tau/bin/tau start > /dev/null 2>&1
elif [ $TAU_ENV = "dev" ]
elif [ "$TAU_ENV" = "dev" ]
then
# Ensure prod env has been setup with:
# export MIX_ENV=dev
Expand All @@ -22,7 +22,7 @@ then
export MIX_ENV=dev
mix assets.deploy.dev
mix run --no-halt > log/tau_stdout.log 2>&1
elif [ $TAU_ENV = "test" ]
elif [ "$TAU_ENV" = "test" ]
then
export MIX_ENV=test
export TAU_MIDI_ENABLED=false
Expand Down

0 comments on commit ace5312

Please sign in to comment.