summaryrefslogtreecommitdiff
path: root/tools/read-version
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-04-09 18:00:23 -0400
committerScott Moser <smoser@ubuntu.com>2013-04-09 18:00:23 -0400
commit1c2adfa3835e031a0f946cef0d99fcfe3dfc1c95 (patch)
tree13018bc982ac82c24c819984f1ffa0c16971db3e /tools/read-version
parent0d3c21c53369673529301f2c4e23bdb7bae7495b (diff)
parent90a6bbda5c181569a969edb0d191d19b6110755b (diff)
downloadvyos-cloud-init-1c2adfa3835e031a0f946cef0d99fcfe3dfc1c95.tar.gz
vyos-cloud-init-1c2adfa3835e031a0f946cef0d99fcfe3dfc1c95.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"