From 3922fd117f8719480a39034f4ca1a3a91e04db9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= <georges.duperon@gmail.com> Date: Wed, 22 Mar 2017 00:24:54 +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) --- auto-push-master.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto-push-master.sh b/auto-push-master.sh index d7e6542..73bce2f 100644 --- a/auto-push-master.sh +++ b/auto-push-master.sh @@ -21,11 +21,12 @@ else mkdir -p ~/.ssh chmod 700 ~/.ssh set +x - if openssl aes-256-cbc -K $encrypted_8fdb34b09f5e_key -iv $encrypted_8fdb34b09f5e_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_8fdb34b09f5e_key -iv $encrypted_8fdb34b09f5e_iv -in travis-deploy-key-id_rsa.enc -out travis-deploy-key-id_rsa -d >/dev/null 2>&1; then echo "Decrypted 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