added the file in wrong repo
This commit is contained in:
parent
142a1f1d73
commit
47f345a729
1 changed files with 0 additions and 21 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue