Use conditional instead of expressions. It should fix wrong exit codes
This commit is contained in:
parent
6b631a36a2
commit
e333aab30f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue