1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

fix wrong variable

This commit is contained in:
OniriCorpe 2023-02-24 21:02:49 +01:00
parent 21dc0e8b4e
commit 5e0a5f41bf

View file

@ -160,7 +160,7 @@ echo "Upgrade done."
# retrieving the actual version in the config file
patch_version="$(grep -Eo 'SOURCE_URL=.*' conf/source/armv7.src | cut -d'v' -f2 | cut -d'/' -f1)"
if [ "$current_version" != "$patch_version" ]; then
if [ "$version" != "$patch_version" ]; then
patch_source_file "conf/source/arm.src" "conf/source/armv7.src"
fi
@ -204,7 +204,7 @@ if [ "$last_main_version" != "$main_version" ]; then
# retrieving the actual version in the config file
patch_version="$(grep -Eo 'SOURCE_URL=.*' "conf/source/armv7_${last_main_version}.src" | cut -d'v' -f2 | cut -d'/' -f1)"
if [ "$current_version" != "$patch_version" ]; then
if [ "$version" != "$patch_version" ]; then
patch_source_file "conf/source/arm_${last_main_version}.src" "conf/source/armv7_${last_main_version}.src"
fi