Commit fff16edd authored by Jon Bernard's avatar Jon Bernard

Set GITFLOW_DIR correctly if git-flow is a symbolic link

This allows a user to create a symbolic link to git-flow in their
personal bin directory (e.g. ~/bin) without having to add the source
tree to their $PATH or do a system install.
parent a7a89cdb
......@@ -42,7 +42,7 @@ if [ "$DEBUG" = "yes" ]; then
set -x
fi
export GITFLOW_DIR=$(dirname "$0")
export GITFLOW_DIR=$(dirname $(readlink "$0"))
usage() {
echo "usage: git flow <subcommand>"
......
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