diff options
author | atanarjuat <atanarjuat@example.com> | 2022-07-31 01:47:34 -0400 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-07-31 02:39:41 -0400 |
commit | 8bef66da80dca4ad085122948471b9c1b1be0ac6 (patch) | |
tree | 7d4cc6e2f5c16cff193ff550d1a4a8a6aa9d8f6b /scripts/check-obfs4-ver.sh | |
parent | daad04f571c8f60500a38a98c87da262baa0361a (diff) |
obfs4 ver check
Diffstat (limited to 'scripts/check-obfs4-ver.sh')
-rwxr-xr-x | scripts/check-obfs4-ver.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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; |