You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/05/10 13:09:47 UTC
[maven] branch MNG-5937 updated: use cut
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch MNG-5937
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/MNG-5937 by this push:
new a9d990c use cut
a9d990c is described below
commit a9d990c10cc1ce603c01b71e44421e5b470f20aa
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun May 10 15:09:36 2020 +0200
use cut
---
maven-wrapper/src/assembly/shared/mvnw | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-wrapper/src/assembly/shared/mvnw b/maven-wrapper/src/assembly/shared/mvnw
index a5308b3..e60304c 100755
--- a/maven-wrapper/src/assembly/shared/mvnw
+++ b/maven-wrapper/src/assembly/shared/mvnw
@@ -259,7 +259,7 @@ else
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
fi
- if [ ${jarUrl:0:4} != 'file' ] && command -v wget > /dev/null; then
+ if [ `echo "${jarUrl}" | cut -c 1-4` != 'file' ] && command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi