X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/46134e1d5cb1f407fd9030ecea7838b06431d11c..33272aa75c4a61ed5b27ab440689048deb8d23a1:/Cydia.app/Cydia?ds=sidebyside diff --git a/Cydia.app/Cydia b/Cydia.app/Cydia index f0c76fcc..3c723156 100755 --- a/Cydia.app/Cydia +++ b/Cydia.app/Cydia @@ -1,3 +1,6 @@ #!/bin/bash -Cydia=$(dirname "$0") -exec "${Cydia}"/Cydia_ 2>>/tmp/cydia.log +C=/${0} +C=${C%/*} +declare -a flags +[[ :${DYLD_INSERT_LIBRARIES}: == */MobileSubstrate.dylib: ]] && flags[${#flags[@]}]=--substrate +exec "${C:-.}"/Cydia_ "${flags[@]}" -- "$@" 2>>/tmp/cydia.log