summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
Diffstat (limited to 'Cydia.app')
-rwxr-xr-xCydia.app/Cydia4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cydia.app/Cydia b/Cydia.app/Cydia
index f0c76fc..8356734 100755
--- a/Cydia.app/Cydia
+++ b/Cydia.app/Cydia
@@ -1,3 +1,5 @@
#!/bin/bash
Cydia=$(dirname "$0")
-exec "${Cydia}"/Cydia_ 2>>/tmp/cydia.log
+declare -a flags
+[[ :${DYLD_INSERT_LIBRARIES}: == */MobileSubstrate.dylib: ]] && flags[${#flags[@]}]=--substrate
+exec "${Cydia}"/Cydia_ "${flags[@]}" -- "$@" 2>>/tmp/cydia.log