1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00
anytype-kotlin/scripts/distribution/decrypt-secrets.sh

14 lines
No EOL
380 B
Bash
Executable file

#!/usr/bin/env bash
decrypt() {
PASSPHRASE=$1
INPUT=$2
OUTPUT=$3
gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $OUTPUT $INPUT
}
if [[ ! -z "$ENCRYPT_KEY" ]]; then
decrypt ${ENCRYPT_KEY} scripts/distribution/anytype-debug-service-account-key.gpg scripts/distribution/anytype-debug-service-account-key.json
else
echo "ENCRYPT_KEY is empty"
fi