]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/Cydia
Merge branch 'master' of saurik.com:cydia
[cydia.git] / Cydia.app / Cydia
index f0c76fcc7e4ecfb3582e6ac9e68f693d87fb087e..3c723156a65b9841d6a529a9fe6cf4be43ec55a8 100755 (executable)
@@ -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