summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/read-version4
-rw-r--r--upstart/cloud-init-nonet.conf2
2 files changed, 3 insertions, 3 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"
diff --git a/upstart/cloud-init-nonet.conf b/upstart/cloud-init-nonet.conf
index a94b1474..e8ebee96 100644
--- a/upstart/cloud-init-nonet.conf
+++ b/upstart/cloud-init-nonet.conf
@@ -14,7 +14,7 @@ script
SLEEP_CHILD=""
static_network_up() {
- local emitted="/run/network/static-network-up-emitted"
+ local emitted="/run/network/static-network-up-emitted"
# /run/network/static-network-up-emitted is written by
# upstart (via /etc/network/if-up.d/upstart). its presense would
# indicate that static-network-up has already fired.