summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-10-25 20:39:20 +1300
committerMike Beattie <mike@ethernal.org>2012-10-25 20:39:20 +1300
commit56023cf5da9deede9fe627fe327783eceecf08f7 (patch)
tree59e2545dcfdeaf7cea18710fba5a69018e5af863
parentbb3f42daffafb497639c2c678f6106ce54523ff3 (diff)
altosdroid: more restrictive commit no. matching
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rwxr-xr-xaltosdroid/buildinfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosdroid/buildinfo.sh b/altosdroid/buildinfo.sh
index afd64973..ac97b7bd 100755
--- a/altosdroid/buildinfo.sh
+++ b/altosdroid/buildinfo.sh
@@ -24,7 +24,7 @@ describe=$(git describe --match "$version" --long --always 2>/dev/null || echo '
if [ -n "$describe" ]; then
branch=$(git branch | sed -ne 's/^\* //p')
commitdetails=$(echo $describe | sed -e "s/^$version-//")
- commitnum=$(echo $commitdetails | cut -d- -f1)
+ commitnum=$(echo $commitdetails | cut -s -d- -f1)
commithash=$(echo $commitdetails | cut -d- -f2)
fi