repro: Allow dashes in the version number

This commit is contained in:
Christian Decker
2020-09-15 10:47:00 +02:00
committed by Rusty Russell
parent 15842d056d
commit 274540f556
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ else
fi
PLATFORM="$OS"-"$VER"
VERSION=$(git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/clightning-\(v[0-9.rc]*\)$,\1,p')
VERSION=$(git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/clightning-\(v[0-9.rc\-]*\)$,\1,p')
# eg. ## [0.6.3] - 2019-01-09: "The Smallblock Conspiracy"
# Skip 'v' here in $VERSION