Skip to content

Commit

Permalink
Use export to make env vars widely available (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Mar 25, 2022
1 parent daa9063 commit a7e703d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# set REVISION env var from commit_id.txt or default
COMMIT_ID=$(cat commit_id.txt 2> /dev/null)
REVISION="${COMMIT_ID:-asdf123jkl456}"
export COMMIT_ID=$(cat commit_id.txt 2> /dev/null)
export REVISION="${COMMIT_ID:-asdf123jkl456}"

# ensure we stop on error (-e) and log cmds (-x)
set -ex
Expand Down

0 comments on commit a7e703d

Please sign in to comment.