Skip to content

Commit

Permalink
Fix multiline env vars passed to docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
cronicc committed Apr 17, 2020
1 parent dd030ef commit e2c5f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
# fix /root/.npm/tmp permission errors on package install from git by installing latest npm
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|WIN_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_|TZ') \
$(env | grep -E 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|WIN_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_|TZ' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' ') \
-v "${PWD}":/project \
-v "${HOME}"/.cache/electron:/root/.cache/electron \
-v "${HOME}"/.cache/electron-builder:/root/.cache/electron-builder \
Expand Down

0 comments on commit e2c5f02

Please sign in to comment.