summaryrefslogtreecommitdiff
path: root/scripts/check-obfs4-ver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-obfs4-ver.sh')
-rwxr-xr-xscripts/check-obfs4-ver.sh14
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;