]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/Cydia
Fix the type of the ellipsis: argument.
[cydia.git] / Cydia.app / Cydia
index 93bca91ec3c26183f167db3ce564372971cb2bf8..3c723156a65b9841d6a529a9fe6cf4be43ec55a8 100755 (executable)
@@ -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