Use same condition order

This commit is contained in:
Davide De Rosa 2017-10-18 09:20:26 +02:00
parent 15d5c28c08
commit ba666f2507
1 changed files with 3 additions and 3 deletions

View File

@ -26,10 +26,10 @@ ALL_SYSTEMS=("iPhone" "AppleTV")
function check_bitcode() { function check_bitcode() {
local FWDIR=$1 local FWDIR=$1
if [[ $FWTYPE == static ]]; then if [[ $FWTYPE == "dynamic" ]]; then
BITCODE_PATTERN="__bitcode"
else
BITCODE_PATTERN="__LLVM" BITCODE_PATTERN="__LLVM"
else
BITCODE_PATTERN="__bitcode"
fi fi
if otool -l "$FWDIR/$FWNAME" | grep "${BITCODE_PATTERN}" >/dev/null; then if otool -l "$FWDIR/$FWNAME" | grep "${BITCODE_PATTERN}" >/dev/null; then