From ba666f250783fd0298da25af9042f1f29bddb092 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 18 Oct 2017 09:20:26 +0200 Subject: [PATCH] Use same condition order --- create-openssl-framework.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index 6574d16..a637761 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -26,10 +26,10 @@ ALL_SYSTEMS=("iPhone" "AppleTV") function check_bitcode() { local FWDIR=$1 - if [[ $FWTYPE == static ]]; then - BITCODE_PATTERN="__bitcode" - else + if [[ $FWTYPE == "dynamic" ]]; then BITCODE_PATTERN="__LLVM" + else + BITCODE_PATTERN="__bitcode" fi if otool -l "$FWDIR/$FWNAME" | grep "${BITCODE_PATTERN}" >/dev/null; then