diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-03-02 22:37:36 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-03-02 22:37:36 +0000 |
commit | 5877a40923baadc1e76ca9c9109597329de12760 (patch) | |
tree | 53792e2e02c8effae83941dcc9a047894e847feb /util/getversion.sh | |
parent | 29e494d54c32d9dc231e0713948465d105b8ea99 (diff) | |
download | chrome-ec-5877a40923baadc1e76ca9c9109597329de12760.tar.gz |
fix version generation script
Fix the quoting for git local change detection.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=run ./util/getversion.sh on a repository with and without local
changes and observe we no longer have a spurious output on stderr.
Change-Id: I40ea4505d175c9135027ba7cf2b787c08eff6f70
Diffstat (limited to 'util/getversion.sh')
-rwxr-xr-x | util/getversion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/getversion.sh b/util/getversion.sh index 93900fcaf6..e7defbf80b 100755 --- a/util/getversion.sh +++ b/util/getversion.sh @@ -23,7 +23,7 @@ if ghash=`git rev-parse --short --verify HEAD 2>/dev/null`; then # changed git status > /dev/null 2>&1 - dirty=`sh -c "[ $(git diff-index --name-only HEAD) ] && echo '-dirty'"` + dirty=`sh -c "[ '$(git diff-index --name-only HEAD)' ] && echo '-dirty'"` ver="${ver_major}.${ver_branch}.${numcommits}-${ghash}${dirty}" else ver="no_version" |