Skip to content

Commit caf76e7

Browse files
committed
Fix env in travis config
1 parent 2d3f77d commit caf76e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ script:
2222
- |
2323
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
2424
docker run --rm \
25-
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
25+
$(env | \
26+
grep -Eo '^[^\s=]*(DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_)[^\s=]*' | \
27+
sed '/^$/d;s/^/-e /' | \
28+
paste -sd ' ' \
29+
) \
2630
-v ${PWD}:/project \
2731
-v ~/.cache/electron:/root/.cache/electron \
2832
-v ~/.cache/electron-builder:/root/.cache/electron-builder \

0 commit comments

Comments
 (0)