Skip to content

Commit

Permalink
We now convert - into _ for variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsig committed Jun 9, 2020
1 parent 0041b5c commit e2166d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ if [ $chamber_result != 0 ]; then
fi
fi

to_secrets=$(echo $chamber_env | sed 's/export //g')
# We want to remove 'export' from the env output and also convert - into _ for env names
to_secrets=$(echo $chamber_env | sed 's/export //g' | for e in $(cat -) ; do echo $e | awk '{ gsub("-", "_", $1) } 1' FS='=' OFS='='; done)
eval_export $to_secrets
# Perform overrides
Expand Down

0 comments on commit e2166d1

Please sign in to comment.