forked from freifunk-franken/firmware
sed version number to current commit if no tag describe exists
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
03e3104273
commit
f9f590d3d6
|
@ -190,6 +190,9 @@ prebuild() {
|
||||||
|
|
||||||
#insert actual firware version informations into release file
|
#insert actual firware version informations into release file
|
||||||
version=$(git describe --tags --dirty)
|
version=$(git describe --tags --dirty)
|
||||||
|
if [ 0 -ne $? ]; then
|
||||||
|
version=$(git log -1 --pretty=format:%h)
|
||||||
|
fi
|
||||||
community=$(basename "$(realpath selected_community)" .cfg)
|
community=$(basename "$(realpath selected_community)" .cfg)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue