From 90a6bbda5c181569a969edb0d191d19b6110755b Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 9 Apr 2013 17:57:41 -0400 Subject: 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. --- tools/read-version | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/read-version') 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" -- cgit v1.2.3