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:
parent
9e968d5867
commit
e6d14b907f
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ module Yunohost
|
||||||
|
|
||||||
def update_with_version(version)
|
def update_with_version(version)
|
||||||
readme = File.read(@path)
|
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)
|
File.write(@path, readme)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue