1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

fix update script

This commit is contained in:
Kay0u 2022-02-09 14:05:27 +01:00
parent 595482f49c
commit d10453c480
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -27,6 +27,11 @@ if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then
version=${version:1} version=${version:1}
fi fi
if [[ $version == *"-alpha" || $version == *"-beta" ]]; then
echo "::warning ::This is not a release version"
exit 0
fi
# Setting up the environment variables # Setting up the environment variables
echo "Current version: $current_version" echo "Current version: $current_version"
echo "Latest release from upstream: $version" echo "Latest release from upstream: $version"