Commit ddc6980e authored by Josh Paetzel's avatar Josh Paetzel
Browse files

change get_freenas_login_version to work with official release strings as well

parent 153cac58
Showing with 6 additions and 1 deletion
+6 -1
......@@ -62,7 +62,12 @@ def get_freenas_login_version():
if fd:
version = fd.read().strip().split("-")
fd.close()
return version[1]
# FreeNAS-8.0.1-RC1-amd64
if len(version) == 4:
return "-".join(version[1:3])
# FreeNAS-8r7200-amd64
else:
return version[1]
return version
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment