You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by sc...@apache.org on 2013/01/23 19:41:24 UTC
svn commit: r1437618 - /jackrabbit/trunk/check-release.sh
Author: schans
Date: Wed Jan 23 18:41:24 2013
New Revision: 1437618
URL: http://svn.apache.org/viewvc?rev=1437618&view=rev
Log:
Strip whitespace from downloaded checksums
Modified:
jackrabbit/trunk/check-release.sh
Modified: jackrabbit/trunk/check-release.sh
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/check-release.sh?rev=1437618&r1=1437617&r2=1437618&view=diff
==============================================================================
--- jackrabbit/trunk/check-release.sh (original)
+++ jackrabbit/trunk/check-release.sh Wed Jan 23 18:41:24 2013
@@ -52,9 +52,9 @@ echo "[INFO] "
## 1. check sha from release email against src.zip.sha file
-downloaded_sha=$(cat `find "$WORKDIR" -type f | grep "jackrabbit-$VERSION-src.zip.sha"`)
+downloaded_sha=$(cat `find "$WORKDIR" -type f | grep "jackrabbit-$VERSION-src.zip.sha"` | tr -d '[[:space:]]')
echo "[INFO] Step 1. Check release cheksum"
-if [ $SHA = $downloaded_sha ]; then
+if [ "$SHA" = "$downloaded_sha" ]; then
echo "[INFO] Release checksum matches provided checksum."
else
echo "[ERROR] Release checksum does not match provided checksum!"
@@ -85,7 +85,7 @@ do
echo "[ERROR] $n.$tp NOT FOUND"
exit 1
else
- A="`cat "$f.$tp" 2>/dev/null`"
+ A="`cat "$f.$tp" | tr -d '[[:space:]]' 2>/dev/null`"
B="`openssl "$hash" "$f" 2>/dev/null | sed 's/.*= *//' `"
if [ $A = $B ]; then
echo "[INFO] $n.$tp is OK"