mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
version number is now in the version.py file
This commit is contained in:
parent
3155a90f45
commit
aed7035db5
1 changed files with 5 additions and 0 deletions
|
@ -253,6 +253,11 @@ file_version="${final_path}/venv/lib/$weblate_pypath/site-packages/weblate/__ini
|
|||
if [ -e $file_version ]
|
||||
then
|
||||
current_version=$(cat $file_version | grep "^VERSION = " | grep -o "[0-9].[0-9]" | head -n1 | cut -d"." -f1)
|
||||
if [ -z "$current_version" ]
|
||||
then
|
||||
file_version="${final_path}/venv/lib/$weblate_pypath/site-packages/weblate/utils/version.py"
|
||||
current_version=$(cat $file_version | grep "^VERSION = " | grep -o "[0-9].[0-9]" | head -n1 | cut -d"." -f1)
|
||||
fi
|
||||
else
|
||||
current_version=3
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue