From e2c5f021443ec8bef9e1f07a9132be5687e8ddc7 Mon Sep 17 00:00:00 2001 From: cronicc Date: Fri, 17 Apr 2020 17:55:22 +0000 Subject: [PATCH] Fix multiline env vars passed to docker container --- ci/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/script.sh b/ci/script.sh index cd99063a..f80cacac 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -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 \