mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-29 03:52:02 +08:00

* 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
8 lines
317 B
Bash
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
|