maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [2/2] maven git commit: [MNG-6191] mvn -f complains about illegal readlink option under macOS
Date Wed, 29 Mar 2017 20:40:10 GMT
[MNG-6191] mvn -f complains about illegal readlink option under macOS


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/21373bd7
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/21373bd7
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/21373bd7

Branch: refs/heads/MNG-6191
Commit: 21373bd7e13e1e4244b5f062df3e2a75d52caf5a
Parents: 00c82b7
Author: Karl Heinz Marbaise <khmarbaise@apache.org>
Authored: Sat Mar 25 11:31:29 2017 +0100
Committer: Karl Heinz Marbaise <khmarbaise@apache.org>
Committed: Wed Mar 29 22:39:59 2017 +0200

----------------------------------------------------------------------
 apache-maven/src/bin/mvn | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/21373bd7/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index df62f68..a447c4b 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -142,7 +142,7 @@ find_file_argument_basedir() {
   for arg in "$@"; do
     if [ ${found_file_switch} -eq 1 ]; then
       if [ -f "${arg}" ]; then
-        basedir=$(dirname "$(readlink -f "${arg}")")
+        basedir="$(cd "$(dirname "${arg}")" && pwd -P)"
         if [ ! -d "${basedir}" ]; then
           echo "Directory ${basedir} extracted from the -f/--file command-line argument ${arg}
does not exist" >&2
           exit 1


Mime
View raw message