mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
mkversion: add --undecided
This commit is contained in:
parent
53cb36447f
commit
4382f8c9be
2 changed files with 10 additions and 7 deletions
|
@ -21,10 +21,12 @@ if [ "$commandGIT" != "" ]; then
|
|||
# now avoiding the "fatal: No names found, cannot describe anything." error by fallbacking to abbrev hash in such case
|
||||
gitversion=$(git describe --dirty --always)
|
||||
gitbranch=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [ "$gitversion" != "${gitversion%-dirty}" ]; then
|
||||
clean=0
|
||||
else
|
||||
clean=1
|
||||
if [ "$1" != "--undecided" ]; then
|
||||
if [ "$gitversion" != "${gitversion%-dirty}" ]; then
|
||||
clean=0
|
||||
else
|
||||
clean=1
|
||||
fi
|
||||
fi
|
||||
if [ "$gitbranch" != "" ] && [ "$gitversion" != "" ]; then
|
||||
fullgitinfo="${fullgitinfo}/${gitbranch}/${gitversion}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue