Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hexian000 committed Dec 21, 2021
1 parent 244d21e commit 8dd9071
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"cert": "server-cert.pem",
"key": "server-key.pem",
"authcerts": [
"peer1-cert.pem",
"peer2-cert.pem"
"client1-cert.pem",
"client2-cert.pem"
]
}
6 changes: 5 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ VERSION=""
if git rev-parse --git-dir >/dev/null 2>&1; then
VERSION="$(git tag --points-at HEAD)"
if [ -z "${VERSION}" ]; then
VERSION="dev-$(git rev-parse --short HEAD)"
VERSION="git-$(git rev-parse --short HEAD)"
fi
if ! git diff-index --quiet HEAD --; then
VERSION="${VERSION}+"
fi
fi
echo "+ version: ${VERSION}"

GOFLAGS="-trimpath -mod vendor"
LDFLAGS=""
Expand Down

0 comments on commit 8dd9071

Please sign in to comment.