mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
git hash 00000000 in reelase.h when git is not found enabled again after some shell scripting fix that is now compatible with most shells
This commit is contained in:
parent
274e45e365
commit
c7dadd1513
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
GIT_SHA1=$(git show-ref --head --hash=8 2> /dev/null | head -n1)
|
GIT_SHA1=$( (git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1)
|
||||||
GIT_DIRTY=$(git diff 2> /dev/null | wc -l)
|
GIT_DIRTY=$(git diff 2> /dev/null | wc -l)
|
||||||
test -f release.h || touch release.h
|
test -f release.h || touch release.h
|
||||||
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
|
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
|
||||||
|
Loading…
Reference in New Issue
Block a user