Permalink
Browse files

Don't break build if ENCRYPT_KEY is empty

  • Loading branch information...
chrisbanes committed Jan 19, 2019
1 parent 47e89c6 commit c10ddf5f150dfa8205e58484037b6eeeeb9b3091
Showing with 10 additions and 6 deletions.
  1. +10 −6 signing/setup.sh
@@ -2,11 +2,15 @@

ENCRYPT_KEY=$1

# Decrypt Release key
openssl aes-256-cbc -md sha256 -d -in signing/app-release.aes -out signing/app-release.jks -k $ENCRYPT_KEY
if [ ! -z "$ENCRYPT_KEY" ]; then
# Decrypt Release key
openssl aes-256-cbc -md sha256 -d -in signing/app-release.aes -out signing/app-release.jks -k $ENCRYPT_KEY

# Decrypt Play Store key
openssl aes-256-cbc -md sha256 -d -in signing/play-account.aes -out signing/play-account.json -k $ENCRYPT_KEY
# Decrypt Play Store key
openssl aes-256-cbc -md sha256 -d -in signing/play-account.aes -out signing/play-account.json -k $ENCRYPT_KEY

# Decrypt Google Services key
openssl aes-256-cbc -md sha256 -d -in signing/google-services.aes -out app/google-services.json -k $ENCRYPT_KEY
# Decrypt Google Services key
openssl aes-256-cbc -md sha256 -d -in signing/google-services.aes -out app/google-services.json -k $ENCRYPT_KEY
else
echo "ENCRYPT_KEY is empty"
fi

0 comments on commit c10ddf5

Please sign in to comment.