Update
This commit is contained in:
parent
ce086be428
commit
12625d163e
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
VERSION=1.13
|
VERSION=1.21.5
|
||||||
|
|
||||||
|
|
||||||
DIR=/opt/gitea
|
DIR=/opt/gitea
|
||||||
@ -104,7 +104,7 @@ 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
|
#curl -s https://dl.gitea.io/gitea/ | grep '<a href\=\"\/gitea' | cut -d"/" -f3 | tail -n 5
|
||||||
# edit when v2 comes out
|
# edit when v2 comes out
|
||||||
curl -s https://dl.gitea.io/gitea/ | grep '<a href\=\"\/gitea/1' | cut -d"/" -f3 | sort --version-sort | tail -n 5
|
#curl -s https://dl.gitea.io/gitea/ | grep '<a href\=\"\/gitea/1' | cut -d"/" -f3 | sort --version-sort | tail -n 5
|
||||||
|
|
||||||
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then
|
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user