mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
semver: Don't return failure codes when git history is not present
This commit is contained in:
parent
ddaaa865cb
commit
d44a7faa04
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
|||
# Complain if the git history is not available
|
||||
if [ $? != 0 ] || [ -z "$BRANCH" ]; then
|
||||
printf "yggdrasil"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Remove "/" characters from the branch name if present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue