Skip to content

Commit 9dcdfd6

Browse files
author
Matthew Fisher
committed
fix(builder): pipe envvars to temp file
1 parent a315026 commit 9dcdfd6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

builder/templates/builder

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ fi
105105

106106
# build option string to send to slugbuilder
107107
BUILD_OPTS=""
108-
for i in $CONFIG; do
109-
BUILD_OPTS+="-e $i "
110-
done
108+
echo $CONFIG > tmp
109+
while read envvar; do
110+
BUILD_OPTS+="-e $envvar "
111+
done < tmp
112+
rm tmp
111113

112114
# if no Dockerfile is present, use slugbuilder to compile a heroku slug
113115
# and write out a Dockerfile to use that slug

0 commit comments

Comments
 (0)