From 15a336a95136c2bbeb2c7b7dd417e692b97d508f Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 7 Dec 2021 23:39:46 -0400 Subject: [PATCH] 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. --- git-flow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-flow b/git-flow index f21a3dc1..805b9af5 100755 --- a/git-flow +++ b/git-flow @@ -46,7 +46,7 @@ fi # git-flow file is a symbolic link case $(uname -s) in Linux) - export GITFLOW_DIR=$(dirname "$(readlink -e "$0")") + export GITFLOW_DIR=$(dirname "$(readlink -f "$0")") ;; FreeBSD|OpenBSD|NetBSD) export FLAGS_GETOPT_CMD='/usr/local/bin/getopt'