Fixed the last version listing

This commit is contained in:
Deni 2019-01-31 14:48:53 +01:00
parent 301473e852
commit 78b2bc8bdf

View File

@ -1,7 +1,7 @@
#!/bin/bash
VERSION=1.6
VERSION=1.7
DIR=/opt/gitea
@ -101,7 +101,8 @@ echo
echo -e "DIR=$DIR \nARCH=$ARCH"
echo -e "\n${UGreen}Latest versions of gitea:${Color_Off}\n"
curl -s https://dl.gitea.io/gitea/ | grep '<a href=\"\.\/' | cut -d"/" -f2 | tail -n 5
#curl -s https://dl.gitea.io/gitea/ | grep '<a href=\"\.\/' | cut -d"/" -f2 | tail -n 5
curl -s https://dl.gitea.io/gitea/ | grep '<a href\=\"\/gitea' | cut -d"/" -f3 | tail -n 5
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then