Skip to content

Commit 15a336a

Browse files
author
Dmitry Bogatov
committed
git-flow: prefer "-f" readlink(1) option to "-e"
Since $0 can be assumed to exist, these two flags behave identially, but readlink(1) from busybox does not support "-e", only GNU Coreutils does.
1 parent 40fc2df commit 15a336a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646
# git-flow file is a symbolic link
4747
case $(uname -s) in
4848
Linux)
49-
export GITFLOW_DIR=$(dirname "$(readlink -e "$0")")
49+
export GITFLOW_DIR=$(dirname "$(readlink -f "$0")")
5050
;;
5151
FreeBSD|OpenBSD|NetBSD)
5252
export FLAGS_GETOPT_CMD='/usr/local/bin/getopt'

0 commit comments

Comments
 (0)