rulimine/version.sh

7 lines
180 B
Bash
Raw Normal View History

2022-01-21 04:24:36 +03:00
#! /bin/sh
2022-01-16 08:09:36 +03:00
LC_ALL=C
export LC_ALL
2022-06-25 11:47:07 +03:00
( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | sed 's/^v//g' | xargs printf '%s'