summaryrefslogtreecommitdiff
path: root/scripts/check-go-modules.sh
blob: fa4b21c6b13b9d5e0190a5f59af4d7e0a8ef0c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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