From 18e84802a1089d7a7f640cf73a4d1756d73fa3f1 Mon Sep 17 00:00:00 2001 From: Kevin Stinson Date: Wed, 23 Nov 2016 17:23:57 -0800 Subject: [PATCH] Quotate symbol that may contain blanks --- src/cc/common/buildversgit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/common/buildversgit.sh b/src/cc/common/buildversgit.sh index 5feda689f..836bb2ac1 100755 --- a/src/cc/common/buildversgit.sh +++ b/src/cc/common/buildversgit.sh @@ -68,7 +68,7 @@ get_release() { # if the hash doesn't match any known ref, just report the hash itself HEAD=$(get_head) REF=$(git show-ref --tags --dereference | grep $HEAD) - if [ -z $REF ]; then + if [ -z "$REF" ]; then # special case: master MASTER=$(git show-ref refs/heads/master | awk '{print $1}') if [ "$HEAD" = "$MASTER" ]; then