From 8e5de9012e2cb48298a7975f22b4aa918315189b Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 3 Dec 2015 17:16:01 -0500 Subject: [PATCH] Improve grep in case 2 projects with similar name For example "snmp" will return both snmp and snmp4sdn. This patch makes it clear we only want the result of snmp only. Change-Id: I2224cb5bdbe3f4a976d095e9a7b696a8b9e2008a Signed-off-by: Thanh Ha (cherry picked from commit bb0d68fb970a101660b9027af2b383ea29068571) --- patch-odl-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch-odl-release.sh b/patch-odl-release.sh index fd351d93..f1115661 100755 --- a/patch-odl-release.sh +++ b/patch-odl-release.sh @@ -39,7 +39,7 @@ scriptdir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # built the release. Basically ensuring that no new patches snuck into the # project during code freeze. CURRENT_HASH=`git rev-parse HEAD` -EXPECTED_HASH=`grep $project $PATCH_DIR/taglist.log | awk '{ print $2 }'` +EXPECTED_HASH=`grep "$project[[:space:]]" $PATCH_DIR/taglist.log | awk '{ print $2 }'` echo "Current Hash: $CURRENT_HASH" echo "Expected Hash: $EXPECTED_HASH" if [ "$CURRENT_HASH" != "$EXPECTED_HASH" ] -- 2.16.6