summaryrefslogtreecommitdiff
path: root/tools/read-version
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-04-09 17:57:41 -0400
committerScott Moser <smoser@ubuntu.com>2013-04-09 17:57:41 -0400
commit90a6bbda5c181569a969edb0d191d19b6110755b (patch)
tree7ae3e5e7d0fdd0f2e6e524016b799d39c0abc637 /tools/read-version
parent19b11d7e269360880d11d883a59b80b2909cee0f (diff)
downloadvyos-cloud-init-90a6bbda5c181569a969edb0d191d19b6110755b.tar.gz
vyos-cloud-init-90a6bbda5c181569a969edb0d191d19b6110755b.zip
tools: fix [some] shell quoting problems
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
Diffstat (limited to 'tools/read-version')
-rwxr-xr-xtools/read-version4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/read-version b/tools/read-version
index 323357fe..c76b24a9 100755
--- a/tools/read-version
+++ b/tools/read-version
@@ -27,5 +27,5 @@ then
exit 1
fi
-VERSION=$(grep -P "\d+.\d+.\d+:" $CHNG_LOG | cut -f1 -d ":" | head -n 1)
-echo $VERSION
+VERSION=$(grep -P "\d+.\d+.\d+:" "$CHNG_LOG" | cut -f1 -d ":" | head -n 1)
+echo "$VERSION"