gnodet commented on code in PR #79: URL: https://github.com/apache/maven-wrapper/pull/79#discussion_r1063545643
########## maven-wrapper-distribution/src/resources/mvnw: ########## @@ -237,8 +243,7 @@ else fi if [ -e "$javaClass" ]; then log " - Running MavenWrapperDownloader.java ..." - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") - [ $? -eq 0 ] || rm -f "$wrapperJarPath" + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath" Review Comment: The parentheses will create a sub shell, so that if the java command fails, the script won't end abruptly (unless the curl/wget above). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org