fix: handle error if exec fails
This commit is contained in:
		
							parent
							
								
									66d68fea35
								
							
						
					
					
						commit
						29c303535e
					
				@ -94,6 +94,9 @@ if os.getenv 'SSH_TTY' then
 | 
			
		||||
	MapDHM()
 | 
			
		||||
else
 | 
			
		||||
	local handle = io.popen 'lsusb | grep -c Sofle'
 | 
			
		||||
	if handle == nil then
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
	local automap = handle:read '*n'
 | 
			
		||||
	handle:close()
 | 
			
		||||
	if automap == 1 then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user