Slic3r/package/linux/travis-decrypt-key
Joseph Lenox 04b59affce only decrypt if the key is available (#3858)
* only decrypt if the key is available

* Use script instead of explicit command

* Don't deploy if the keyfile is missing/empty.

* Don't deploy if key is not available.

* Don't decrypt appveyor key if no secret

* wrong name

* Fix the logic and a typo
2017-04-05 11:27:04 -05:00

8 lines
317 B
Bash

#!/bin/bash
# Script to only decrypt if it is available
if [ ! -z ${encrypted_daaf322d08bf_key+x} ]; then
openssl aes-256-cbc -K $encrypted_daaf322d08bf_key -iv $encrypted_daaf322d08bf_iv -in $TRAVIS_BUILD_DIR/package/deploy/slic3r-upload.rsa.enc -out ~/slic3r-upload.rsa -d
chmod 600 ~/slic3r-upload.rsa
fi