From 8bef66da80dca4ad085122948471b9c1b1be0ac6 Mon Sep 17 00:00:00 2001 From: atanarjuat Date: Sun, 31 Jul 2022 01:47:34 -0400 Subject: obfs4 ver check --- scripts/check-obfs4-ver.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/check-obfs4-ver.sh (limited to 'scripts/check-obfs4-ver.sh') diff --git a/scripts/check-obfs4-ver.sh b/scripts/check-obfs4-ver.sh new file mode 100755 index 0000000..cecb7e0 --- /dev/null +++ b/scripts/check-obfs4-ver.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# check yawning's HEAD +available=$(curl -s https://gitlab.com/api/v4/projects/10387781/repository/tags/ | jq ".[0]".name | cut -d "-" -f 2 | cut -d "\"" -f 1) +current=$(cat scripts/obfs4-version) + +echo "current:" $current +echo "available:" $available + +if [ "$available" = "$current" ]; then + exit 0 +else + echo "New version of upstream yawning/obfs4 available, should update deps." + exit 2 +fi; -- cgit v1.2.3