From 09c20930022df8bb97ce8d813525e8ba1665f5e1 Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Mon, 20 Jun 2022 00:47:39 +0530 Subject: add makefile target to check if new version of yawning/obfs4 is available --- scripts/check-go-modules.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/check-go-modules.sh (limited to 'scripts') diff --git a/scripts/check-go-modules.sh b/scripts/check-go-modules.sh new file mode 100755 index 0000000..fa4b21c --- /dev/null +++ b/scripts/check-go-modules.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +go get -u gitlab.com/yawning/obfs4.git &> /dev/null +git --no-pager diff -U0 go.mod | grep -Fq "gitlab.com/yawning/obfs4.git" + +case "$?" in + "0") + echo "New version of upstream yawning/obfs4 available!!" + exit 2 + ;; + *) + exit 0 + ;; +esac + -- cgit v1.2.3