mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
wtf
This commit is contained in:
parent
5f4015344e
commit
a019678827
@ -3,11 +3,7 @@
|
||||
# Check for git and a git repo.
|
||||
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
|
||||
comm=`git log --pretty=oneline -n1 | awk ' { print $1 }'`
|
||||
if tagver=`git describe --exact-match --match bootmii-\* $comm 2>/dev/null`; then
|
||||
printf "%s" "BootMii v"`printf "%s" $tagver | awk '{ sub (/bootmii-/, ""); print;}'`
|
||||
else
|
||||
printf "%s" ""`printf "%s" \`git describe --abbrev=4 --match bootmii-\* $comm | awk '{ sub (/bootmii-/, ""); print;}'\``
|
||||
fi
|
||||
|
||||
# Are there uncommitted changes?
|
||||
git update-index --refresh --unmerged > /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user