Skip to content

Commit

Permalink
Quotate symbol that may contain blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
kstinsonqc committed Nov 24, 2016
1 parent 12ecc6d commit 18e8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/common/buildversgit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18e8480

Please sign in to comment.