Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 48d3264

Browse files
committed
travis: fix export private key
1 parent e85778e commit 48d3264

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ before_install:
3232
- >
3333
if [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then \
3434
bash .travis/install_key.sh; \
35-
SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \
35+
export SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \
3636
else \
3737
export SSH_AUTH_SOCK=""; \
3838
fi

.travis/install_key.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/bin/bash
2-
export SSH_TEST_PRIVATE_KEY=$PWD/.travis/deploy.pem
3-
42
openssl aes-256-cbc \
53
-K $encrypted_1477e58fe67a_key \
64
-iv $encrypted_1477e58fe67a_iv \
75
-in .travis/deploy.pem.enc \
8-
-out .travis/deploy.pem -d
6+
-out $HOME/.travis/deploy.pem -d
97

10-
chmod 600 .travis/deploy.pem
8+
chmod 600 $HOME/.travis/deploy.pem
119

0 commit comments

Comments
 (0)