Diff of /generate-version.sh [7d4072] .. [9ae145] Maximize Restore

  Switch to side-by-side view

--- a/generate-version.sh
+++ b/generate-version.sh
@@ -26,7 +26,7 @@
     fi
     # Build it.
     version_head=`git rev-parse HEAD`
-    if expr "`cat .git/HEAD`" : "ref: refs/heads/.*" > /dev/null 2>&1
+    if `cat .git/HEAD` | grep -q "ref: refs/heads/.*" > /dev/null 2>&1
     then
         version_branchname=`cut -d / -f 3- < .git/HEAD`
     else