X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/ec5624fed7e58765969a4c4a872fdc556a142099..6895ceafe1ea62220c0df671a43c406232a60d82:/Cydia.app/Cydia diff --git a/Cydia.app/Cydia b/Cydia.app/Cydia index 93bca91e..3c723156 100755 --- a/Cydia.app/Cydia +++ b/Cydia.app/Cydia @@ -1,3 +1,6 @@ #!/bin/bash -Cydia=$(dirname "$0") -"${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