Use conditional instead of expressions. It should fix wrong exit codes

This commit is contained in:
len 2018-02-04 21:47:16 +01:00
parent 6b631a36a2
commit e333aab30f
1 changed files with 3 additions and 1 deletions

View File

@ -19,5 +19,7 @@ for APK in ${APKS[@]}; do
APKDEST="$DEST/$APKNAME"
${TOOLS}/zipalign -v -p 4 $APK $APKDEST
[[ -z "$TRAVIS_PULL_REQUEST" ]] && ${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS $APKDEST
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS $APKDEST
fi
done