Use same condition order
This commit is contained in:
parent
15d5c28c08
commit
ba666f2507
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue