Skip to content

Commit

Permalink
Merge pull request ansible#4969 from phy1729/devel
Browse files Browse the repository at this point in the history
Add zsh support for working dir independant sourcing
  • Loading branch information
mpdehaan committed Nov 19, 2013
2 parents 6d3fc34 + 2b3381d commit 855b9bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hacking/env-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 855b9bd

Please sign in to comment.