From 2287de322d1d5f7f6db160db9f9093a893aa2134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 22 Mar 2017 00:23:27 +0100 Subject: [PATCH] make the openssl line easier to substitue (move the decrypted file to its destination after the command, not as part of it) --- travis-auto-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/travis-auto-deploy.sh b/travis-auto-deploy.sh index 92425ef48..a600d3dc4 100644 --- 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