read only the first line if more lines
This commit is contained in:
parent
21f279a659
commit
942bcc75a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue