limine/version.sh
2022-06-25 10:47:07 +02:00

7 lines
180 B
Bash
Executable File

#! /bin/sh
LC_ALL=C
export LC_ALL
( 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'