Skip to content

Commit 27a5605

Browse files
committed
add badges to README.md and sha256sum to release
Signed-off-by: Damien Degois <damien@degois.info>
1 parent 32fc5eb commit 27a5605

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# multiping
22

3+
[![GitHub](https://img.shields.io/github/license/babs/multiping)](https://github.com/babs/multiping/blob/master/LICENSE)
4+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/babs/multiping)](https://github.com/babs/multiping/releases/latest)
5+
36
`multiping` is a cli tool to monitor several targets at once using pings or tcp probing with optional logging of transition between states in a file.
47

58
## Demo

release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ for DIST in {linux,openbsd,freebsd,windows}/{amd64,arm,arm64,386} darwin/{amd64,
4343
[ "$GOOS" = "windows" ] && SUFFIX=".exe"
4444
TARGET=${BINBASE}-${GOOS}-${GOARCH}
4545
env CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="${LDFLAGS[*]}" -mod vendor -o dist/${TARGET}${SUFFIX}
46+
(cd dist; sha256sum ${TARGET}${SUFFIX}) | tee -a ${BINBASE}.sha256sum
4647
if [ -z "$NOCOMPRESS" ]; then
4748
echo "[-] - compress"
4849
if [ "$GOOS" = "windows" ]; then
@@ -55,7 +56,7 @@ for DIST in {linux,openbsd,freebsd,windows}/{amd64,arm,arm64,386} darwin/{amd64,
5556
done
5657

5758
echo "[*] sha256sum"
58-
(cd dist; sha256sum *) | tee ${BINBASE}.sha256sum
59+
(cd dist; sha256sum *) | tee -a ${BINBASE}.sha256sum
5960
mv ${BINBASE}.sha256sum dist/
6061

6162
#echo "[*] pack"

0 commit comments

Comments
 (0)