diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-09-11 16:58:01 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-09-11 16:58:01 -0400 |
commit | 479b0e3fd6009a598e96311dd9821355c7f88a66 (patch) | |
tree | 0edf5edc80bcb319d25aaaceb82355bf704c63db /tools | |
parent | 6b122985da19c08ea50a25226c726f2982680efb (diff) | |
download | vyos-cloud-init-479b0e3fd6009a598e96311dd9821355c7f88a66.tar.gz vyos-cloud-init-479b0e3fd6009a598e96311dd9821355c7f88a66.zip |
fix read-version
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/read-version | 4 |
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" |