mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -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
|
||||
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)
|
||||
test -f release.h || touch release.h
|
||||
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
|
||||
|
Loading…
Reference in New Issue
Block a user