]> git.saurik.com Git - cycript.git/blobdiff - cycript.in
Fix issue in 64-bit choose() reported by heardrwt.
[cycript.git] / cycript.in
index 6505b3b7f48c8e76e5da1dff7cc28fff75d4cff9..8aba9f106a5f007119be75dfc7062185d4546227 100644 (file)
@@ -19,5 +19,5 @@
 # along with Cycript.  If not, see <http://www.gnu.org/licenses/>.
 # }}}
 
-dir=${0%/*}
-DYLD_LIBRARY_PATH=Cycript.lib exec Cycript.lib/cycript "$@"
+dir=$(dirname "${BASH_SOURCE[0]}")
+DYLD_LIBRARY_PATH="${dir}"/Cycript.lib exec "${dir}"/Cycript.lib/cycript "$@"