"Fossies" - the Fresh Open Source Software Archive

Member "navit-0.5.6/scripts/setup_publish_keys.sh" (6 Mar 2021, 466 Bytes) of package /linux/privat/navit-0.5.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "setup_publish_keys.sh": 0.5.5_vs_0.5.6.

    1 #!/bin/bash
    2 
    3 set -e
    4 
    5 if [[ -n $GOOGLE_KEY ]]; then
    6   echo $GOOGLE_KEY | base64 -d > key.json
    7 fi
    8 if [[ -n $KEY ]]; then
    9   wget "https://github.com/navit-gps/infrastructure-blackbox/raw/master/keyrings/keystore.gpg"
   10   openssl aes-256-cbc -d -in keystore.gpg -md md5 -k $KEY > keystore
   11   keytool -importkeystore -srcstorepass "$STORE_PASS" -deststorepass "$STORE_PASS" -srckeystore keystore -destkeystore ~/.keystore -deststoretype pkcs12
   12   rm keystore.gpg keystore
   13 fi