mirror of
https://github.com/fail0verflow/bootmii.git
synced 2024-11-28 14:35:44 +01:00
16 lines
466 B
Bash
Executable File
16 lines
466 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# 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 }'`
|
|
printf "%s" ""`printf "%s" \`git describe --always --abbrev=4 --match bootmii-\* $comm | awk '{ sub (/bootmii-/, ""); print;}'\``
|
|
|
|
# Are there uncommitted changes?
|
|
git update-index --refresh --unmerged > /dev/null
|
|
git diff-index --quiet HEAD loader stub || printf "%s" '*'
|
|
fi
|
|
|
|
echo
|