Version listing
This commit is contained in:
parent
70b7b86292
commit
39b6202eca
@ -95,12 +95,17 @@ echo -e "${Green} \__, |_|\__\___|\__,_|${Color_Off}"
|
|||||||
echo -e "${Green} |___/${Color_Off} Git with a cup of tea"
|
echo -e "${Green} |___/${Color_Off} Git with a cup of tea"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo
|
||||||
echo -e "${UGreen}Update of gitea to ${VERSION} is in progress... ${Color_Off}"
|
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
|
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
|
else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user