Author: schultz Date: Tue Dec 12 14:17:35 2023 New Revision: 1914581 URL: http://svn.apache.org/viewvc?rev=1914581&view=rev Log: Use simpler curl command.
Modified: tomcat/site/trunk/tools/update-version.sh Modified: tomcat/site/trunk/tools/update-version.sh URL: http://svn.apache.org/viewvc/tomcat/site/trunk/tools/update-version.sh?rev=1914581&r1=1914580&r2=1914581&view=diff ============================================================================== --- tomcat/site/trunk/tools/update-version.sh (original) +++ tomcat/site/trunk/tools/update-version.sh Tue Dec 12 14:17:35 2023 @@ -68,7 +68,7 @@ else fi # Check to see if the release artifacts are available from the download site... -found=$( curl -Isi https://downloads.apache.org/tomcat/tomcat-${MAJOR_RELEASE}/v${NEW_RELEASE}/ | grep ^HTTP | awk '{print $2}' ) +found=$( curl -Isiw '%{http_code}' -o /dev/null https://downloads.apache.org/tomcat/tomcat-${MAJOR_RELEASE}/v${NEW_RELEASE}/ ) if [ "200" '!=' "$found" ] ; then echo It appears that the release artifacts for release ${NEW_RELEASE} are not yet --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org