Commit 2b3381de by phy1729

Add zsh support for working dir independant sourcing

parent b29669dc
......@@ -5,6 +5,8 @@
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=`dirname $BASH_SOURCE`
elif [ ${0:(-9)} = "env-setup" ]; then
HACKING_DIR=`dirname $0`
else
HACKING_DIR="$PWD/hacking"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment