Skip to content
Snippets Groups Projects
Commit 89db8d41 authored by François  LAURENT's avatar François LAURENT
Browse files

fix: version label was broken in the absence of a src/version.txt file

parent 62727810
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,8 @@ function footer() ...@@ -36,8 +36,8 @@ function footer()
version = version[1:end-2] version = version[1:end-2]
end end
versionfile = joinpath(@__DIR__, "version.txt") versionfile = joinpath(@__DIR__, "version.txt")
version = if isfile(versionfile) if isfile(versionfile)
join((version, readchomp(versionfile)), "-") version = join((version, readchomp(versionfile)), "-")
end end
tagurl = "https://gitlab.com/dbc-nyx/NyxUI.jl/-/tags" tagurl = "https://gitlab.com/dbc-nyx/NyxUI.jl/-/tags"
Html.footer("NyxUI.jl <a href=\"$tagurl\">v$version</a>") Html.footer("NyxUI.jl <a href=\"$tagurl\">v$version</a>")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment