summaryrefslogtreecommitdiff
path: root/prepareForDistribution.sh
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-07-14 15:52:49 +0200
committercyBerta <cyberta@riseup.net>2019-07-14 16:28:43 +0200
commit0d2a8ac2ed0d3229067a5b52055df30d3077abe5 (patch)
tree5bbcf9bd4a277824282665ea82cd71719ee11955 /prepareForDistribution.sh
parent434df5f7aba1664a5235d7b208dc8ac891e862aa (diff)
check only for signing if ANDROID_BUILD_TOOLS is set
Diffstat (limited to 'prepareForDistribution.sh')
-rwxr-xr-xprepareForDistribution.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/prepareForDistribution.sh b/prepareForDistribution.sh
index 902e6559..339a9717 100755
--- a/prepareForDistribution.sh
+++ b/prepareForDistribution.sh
@@ -31,13 +31,6 @@ EXPECTED_FINGERPRINT="SHA256:9C:94:DB:F8:46:FD:95:97:47:57:17:2A:6A:8D:9A:9B:DF:
-# check global vars
-if [[ -z ${ANDROID_BUILD_TOOLS} ]]
-then
- echo "ERROR: Environment variable ANDROID_BUILD_TOOLS not set! Please add it to your .bashrc file. Exiting."
- exit
-fi
-
# init parameters
for ((i=1;i<=$#;i++));
do
@@ -203,6 +196,13 @@ fi
if [[ ${DO_SIGN} == true ]]
then
+ # check global vars
+ if [[ -z ${ANDROID_BUILD_TOOLS} ]]
+ then
+ echo "ERROR: Environment variable ANDROID_BUILD_TOOLS not set! Please add it to your environment variables. Exiting."
+ exit
+ fi
+
if [[ -z ${FILE_NAME} && ${DO_BUILD} == false ]]
then
echo -e "ERROR: Sign only needs a file name. Please check ./prepareForDistribution -help!"