added the file in wrong repo

This commit is contained in:
Maria Haider 2020-09-09 12:39:30 +02:00
parent 142a1f1d73
commit 47f345a729
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1,21 +0,0 @@
#!/bin/bash
#
URL=$1
VERSION=$2
JSONVERSION=$(curl -ksL $URL | jq .version 2> /dev/null | sed s/\"//g)
EXITCODE=$?
if [ $EXITCODE -ne 0 ]; then
echo "Could not get version from URL: $URL"
exit 2
fi
if [ "$VERSION" != "$JSONVERSION" ]; then
echo "Version missmatch, $JSONVERSION != $VERSION"
exit 1
fi
echo "OK - Version: $JSONVERSION"
exit 0