Version listing

This commit is contained in:
Deni 2018-07-04 10:07:03 +02:00
parent 70b7b86292
commit 39b6202eca
1 changed files with 6 additions and 1 deletions

View File

@ -95,12 +95,17 @@ echo -e "${Green} \__, |_|\__\___|\__,_|${Color_Off}"
echo -e "${Green} |___/${Color_Off} Git with a cup of tea"
echo
echo
echo -e "${UGreen}Update of gitea to ${VERSION} is in progress... ${Color_Off}"
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
if [ -f $DIR/bin/gitea-$VERSION-$ARCH ]; then
echo -e "\n${Ugreen}Latest version ${VERSION} is already downloaded! ${Color_Off}\n"
echo -e "\n${UGreen}Version ${VERSION} is already downloaded! ${Color_Off}\n"
else