Suchalgorithmus verbessert

This commit is contained in:
Patrick Schindelmann 2019-09-28 20:26:49 +02:00
parent b40b8d6554
commit 2821b70150

View File

@ -16,7 +16,7 @@ else
fi fi
gitea_remote_version=$(curl --silent https://github.com/go-gitea/gitea/releases | grep "/releases/tag" | grep -v "\-rc" | grep -v "\-dev" | cut -d ">" -f 2 | cut -d "<" -f 1 | head -n 1| sed -e 's/^v//' ) gitea_remote_version=$(curl --silent https://github.com/go-gitea/gitea/releases | grep "/releases/tag" | grep -v "\-rc" | grep -v "\-dev" | cut -d ">" -f 2 | cut -d "<" -f 1 | head -n 1| sed -e 's/^v//' | awk '{print $1}' | sed -e 's/://' )
#gitea_remote_version=$(curl --silent https://github.com/go-gitea/gitea/releases | grep "css-truncate-target" | grep -v "\-rc" | cut -d "v" -f 2 | cut -d "<" -f 1 | head -n 1) #gitea_remote_version=$(curl --silent https://github.com/go-gitea/gitea/releases | grep "css-truncate-target" | grep -v "\-rc" | cut -d "v" -f 2 | cut -d "<" -f 1 | head -n 1)
if [ "$gitea_local_version" = "$gitea_remote_version" ] if [ "$gitea_local_version" = "$gitea_remote_version" ]