summaryrefslogtreecommitdiff
path: root/Cydia.app/Cydia
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-05-05 05:44:41 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:14 +0000
commit6204f56a7d810316e2b93ef0214ca1c931c4c889 (patch)
treecac72979161b48741c4df804bf6f5aab5d91781e /Cydia.app/Cydia
parent20cb1497dc6be5c6f6af8fd79a04ec8aed24df48 (diff)
Various awesome upgrades.
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