From d32f04d0c76fefaf84bf6d7f100a4f360311911e Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 11 Sep 2013 16:58:01 -0400 Subject: [PATCH] fix read-version --- tools/read-version | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/read-version b/tools/read-version index 3df0889b..599f52cd 100755 --- a/tools/read-version +++ b/tools/read-version @@ -25,8 +25,8 @@ if [ ! -e "$CHNG_LOG" ]; then fail "Unable to find 'ChangeLog' file located at '$CHNG_LOG'" fi -VERSION=$(sed -n '/^[0-9]\+[.][0-9]\+[.][0-9]\+:/ \ - {s/://; p; :a;n; ba; }' "$CHNG_LOG") && +VERSION=$(sed -n '/^[0-9]\+[.][0-9]\+[.][0-9]\+:/ {s/://; p; :a;n; ba; }' \ + "$CHNG_LOG") && [ -n "$VERSION" ] || fail "failed to get version from '$CHNG_LOG'" echo "$VERSION"