[TuX] better uname call
This commit is contained in:
		
							parent
							
								
									58210daf44
								
							
						
					
					
						commit
						e93d287c5b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -793,7 +793,7 @@ def get_os_info(): | |||
| 				return text | ||||
| 
 | ||||
| 		# our last chance, ask uname and strip it | ||||
| 		uname_output = get_output_of_command('uname -a | cut -d" " -f1,3') | ||||
| 		uname_output = get_output_of_command('uname -sr') | ||||
| 		if uname_output is not None: | ||||
| 			return uname_output[0] # only first line | ||||
| 	return 'N/A' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue