Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (35 sloc) 0.781 kb
#!/bin/bash
unset persist
while getopts "p:" Option; do
case $Option in
p) persist="${OPTARG}" ;;
*) exit 1 ;;
esac
done
shift $(($OPTIND - 1))
if [[ ! -z "$persist" ]]; then
export _FAUXSU_PERSIST_FILENAME="$persist"
fi
_LIBFAUXSU="@@FAUXSU_INSTALL_PATH@@/libfauxsu.dylib"
if [[ ! -z "${THEOS_BIN_PATH}" ]]; then
_LIBFAUXSU="${THEOS_BIN_PATH}/libfauxsu.dylib"
fi
if [[ ! -z "${FW_BINDIR}" ]]; then
_LIBFAUXSU="${FW_BINDIR}/libfauxsu.dylib"
fi
if [[ ! -f "$_LIBFAUXSU" ]]; then
_SELF="$(dirname $0)"
_LIBFAUXSU="$_SELF/libfauxsu.dylib"
fi
if [[ ! -f "$_LIBFAUXSU" ]]; then
echo "I couldn't find libfauxsu.dylib :(" 1>&2
fi
export DYLD_INSERT_LIBRARIES="${_LIBFAUXSU}"
if [[ $# -eq 0 ]]; then
${SHELL:-/bin/sh}
RESULT=$?
else
"$@"
RESULT=$?
fi
exit $RESULT
Jump to Line
Something went wrong with that request. Please try again.