mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	locale/pick-complete-translations.py: run sort without shell
Static code analyzers flag such things as security errors.
This commit is contained in:
		
							parent
							
								
									a304ae95fa
								
							
						
					
					
						commit
						b655d20d6b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,7 @@ import json
 | 
			
		|||
import os
 | 
			
		||||
import re
 | 
			
		||||
import requests
 | 
			
		||||
import subprocess
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -51,4 +52,4 @@ with open(manifest_file, 'a') as fp:
 | 
			
		|||
        if line:
 | 
			
		||||
            fp.write(line)
 | 
			
		||||
 | 
			
		||||
os.system('sort -u -o %s %s' % (manifest_file, manifest_file))
 | 
			
		||||
subprocess.run(['sort', '-u', '-o', manifest_file, manifest_file])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue