limine/version.sh
2022-01-21 02:24:36 +01:00

5 lines
224 B
Bash
Executable File

#! /bin/sh
[ -f version ] || ( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | xargs printf '%s'
[ -f version ] && ( cat version 2>/dev/null ) | xargs printf '%s'