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