Skip to content

Commit 797fb8a

Browse files
author
John Crispin
committed
scripts: add "r" to revision
343c3be accidentially removed the "r" Signed-off-by: John Crispin <[email protected]>
1 parent c9e3cd7 commit 797fb8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/getver.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ try_version() {
1212
try_git() {
1313
git rev-parse --git-dir >/dev/null 2>&1 || return 1
1414
REV="$(git describe --match reboot | sed "s/reboot-\([0-9]*\)-.*/\1/g")"
15+
REV="${REV:+r$REV}"
1516
[ -n "$REV" ]
1617
}
1718

1819
try_hg() {
1920
[ -d .hg ] || return 1
2021
REV="$(hg log -r-1 --template '{desc}' | awk '{print $2}' | sed 's/\].*//')"
21-
REV="${REV:+$REV}"
22+
REV="${REV:+r$REV}"
2223
[ -n "$REV" ]
2324
}
2425

0 commit comments

Comments
 (0)