From 113509896bb446bf63241c7e57339645b6862787 Mon Sep 17 00:00:00 2001 From: Alexei Lozovsky Date: Fri, 8 May 2020 10:10:17 +0300 Subject: [PATCH] Don't symlink macOS framework if not building it If we are not building macOS targets then the framework has not been created and we not should go ahead with creating symlinks in it. Check whether the framework directory is there, if it's not then don't attempt to create symlinks. --- create-openssl-framework.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index 8506d10..8027ba0 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -149,6 +149,9 @@ for SYS in ${ALL_SYSTEMS[@]}; do if [[ $SYS == "MacOSX" ]]; then SYSDIR="$FWROOT/$SYS" FWDIR="$SYSDIR/$FWNAME.framework" + if [[ ! -e "$FWDIR" ]]; then + continue + fi cd $FWDIR mkdir "Versions"