1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

tools: make bump script recognize the version string in the new README

This commit is contained in:
Pierre de La Morinerie 2021-06-15 08:34:32 +02:00
parent 9e968d5867
commit e6d14b907f

View file

@ -97,7 +97,7 @@ module Yunohost
def update_with_version(version)
readme = File.read(@path)
readme.gsub!(/<span class="version">(.*)<\/span>/, "<span class=\"version\">#{version}</span>")
readme.gsub!(/[0-9\.]+~ynh[0-9]+/, "#{version}~ynh1")
File.write(@path, readme)
end
end