summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Wildemann <gta04@metalstrolche.de>2020-05-01 19:53:32 +0200
committerViktor Verebelyi <vviktor2@gmail.com>2020-09-22 02:16:09 +0100
commitb3935b13227e4fa3518e6f3c2c47507569d19750 (patch)
treeb0eff8bf42f9bfacb165ca439002f4469c4a3716 /scripts
parentbd84b4c5dc5c1dd15bf0cf090979df4fbda324c4 (diff)
downloadnavit-b3935b13227e4fa3518e6f3c2c47507569d19750.tar.gz
fix:build:android: Don't sign apk if no valid keyring is available
This happens usually if building with CI on fork repository
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setup_publish_keys.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/setup_publish_keys.sh b/scripts/setup_publish_keys.sh
index 61ed85b76..2b1331d8e 100755
--- a/scripts/setup_publish_keys.sh
+++ b/scripts/setup_publish_keys.sh
@@ -2,10 +2,10 @@
set -e
-if [ -n $GOOGLE_KEY ]; then
+if [[ -n $GOOGLE_KEY ]]; then
echo $GOOGLE_KEY | base64 -d > key.json
fi
-if [ -n $KEY ]; then
+if [[ -n $KEY ]]; then
wget "https://github.com/navit-gps/infrastructure-blackbox/raw/master/keyrings/keystore.gpg"
openssl aes-256-cbc -d -in keystore.gpg -md md5 -k $KEY > ~/.keystore
keytool -importkeystore -srcstorepass "$STORE_PASS" -deststorepass "$STORE_PASS" -srckeystore ~/.keystore -destkeystore ~/.keystore -deststoretype pkcs12