Fixed latest version output.
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VERSION=1.8.1
 | 
			
		||||
VERSION=1.10.3
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
DIR=/opt/gitea
 | 
			
		||||
@ -102,7 +102,9 @@ 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\=\"\/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
 | 
			
		||||
curl -s https://dl.gitea.io/gitea/ | grep '<a href\=\"\/gitea/1' | cut -d"/" -f3 | sort --version-sort
 | 
			
		||||
 | 
			
		||||
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user