Skip to content
Snippets Groups Projects
Commit 942bcc75 authored by nkour's avatar nkour
Browse files

read only the first line if more lines

parent 21f279a6
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ def get_os_info():
path_to_file = distro_info[distro_name]
if os.path.exists(path_to_file):
fd = open(path_to_file)
text = fd.read().strip()
text = fd.readline().strip() #get only first line
fd.close()
if path_to_file.endswith('version'):
# sourcemage_version has all the info we need
......
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