summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2013-09-19 16:51:55 -0600
committerBen Howard <ben.howard@canonical.com>2013-09-19 16:51:55 -0600
commitfc97491fef9780a03cca6b78b477cbf75856f46c (patch)
tree3161cec6da16e0e9d5a0e3e295d9417afa5c234f /tools
parentd1bad8880c2219b9d7a648169bbe7a0a27c03be2 (diff)
parent266d12c5777d5fba97c374c33cb4f31d50e2d347 (diff)
downloadvyos-cloud-init-fc97491fef9780a03cca6b78b477cbf75856f46c.tar.gz
vyos-cloud-init-fc97491fef9780a03cca6b78b477cbf75856f46c.zip
Merged in the latest changes.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/read-version4
1 files 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"