make the openssl line easier to substitue (move the decrypted file to its destination after the command, not as part of it)
This commit is contained in:
parent
0d36df9c1a
commit
3922fd117f
|
@ -21,11 +21,12 @@ else
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
set +x
|
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."
|
echo "Decrypted key successfully."
|
||||||
else
|
else
|
||||||
echo "Error while decrypting key."
|
echo "Error while decrypting key."
|
||||||
fi
|
fi
|
||||||
|
mv travis-deploy-key-id_rsa ~/.ssh/travis-deploy-key-id_rsa
|
||||||
set -x
|
set -x
|
||||||
chmod 600 ~/.ssh/travis-deploy-key-id_rsa
|
chmod 600 ~/.ssh/travis-deploy-key-id_rsa
|
||||||
set +x
|
set +x
|
||||||
|
|
Loading…
Reference in New Issue
Block a user