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()
version = version[1:end-2]
end
versionfile = joinpath(@__DIR__, "version.txt")
version = if isfile(versionfile)
join((version, readchomp(versionfile)), "-")
if isfile(versionfile)
version = join((version, readchomp(versionfile)), "-")
end
tagurl = "https://gitlab.com/dbc-nyx/NyxUI.jl/-/tags"
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.
Finish editing this message first!
Please register or to comment