commit 2287de322d1d5f7f6db160db9f9093a893aa2134 parent 0585c0b74a5d906c007745dd7f840c5a5ce45ff7 Author: Georges Dupéron <georges.duperon@gmail.com> Date: Wed, 22 Mar 2017 00:23:27 +0100 make the openssl line easier to substitue (move the decrypted file to its destination after the command, not as part of it) Diffstat:
| M | travis-auto-deploy.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/travis-auto-deploy.sh b/travis-auto-deploy.sh @@ -22,11 +22,12 @@ else mkdir -p ~/.ssh chmod 700 ~/.ssh set +x - if openssl aes-256-cbc -K $encrypted_675a73236f08_key -iv $encrypted_675a73236f08_iv -in travis-deploy-key-id_rsa.enc -out ~/.ssh/travis-deploy-key-id_rsa -d >/dev/null 2>&1; then + if openssl aes-256-cbc -K $encrypted_675a73236f08_key -iv $encrypted_675a73236f08_iv -in travis-deploy-key-id_rsa.enc -out travis-deploy-key-id_rsa -d >/dev/null 2>&1; then echo "Dectypred key successfully." else echo "Error while decrypting key." fi + mv travis-deploy-key-id_rsa ~/.ssh/travis-deploy-key-id_rsa set -x chmod 600 ~/.ssh/travis-deploy-key-id_rsa set +x