From f9f590d3d63e77c5b7a9dac74dc92f2d708c5236 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sat, 24 Sep 2016 15:28:27 +0200 Subject: [PATCH] sed version number to current commit if no tag describe exists Reviewed-by: Tim Niemeyer --- buildscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildscript b/buildscript index e9bdec8..56b75e7 100755 --- a/buildscript +++ b/buildscript @@ -190,6 +190,9 @@ prebuild() { #insert actual firware version informations into release file version=$(git describe --tags --dirty) + if [ 0 -ne $? ]; then + version=$(git log -1 --pretty=format:%h) + fi community=$(basename "$(realpath selected_community)" .cfg) {