18 lines
		
	
	
		
			447 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			18 lines
		
	
	
		
			447 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
| #!/usr/bin/python3
 | |
| 
 | |
| import sys
 | |
| from SystemLib import ogHelp
 | |
| from SystemLib import ogIsRepoLocked
 | |
| 
 | |
| if 2 == len (sys.argv) and 'help' == sys.argv[1]:
 | |
|     #parser.print_help() sale en inglés aunque la locale indique otra cosa
 | |
|     ogHelp ('ogIsRepoLocked', 'ogIsRepoLocked', ['ogIsRepoLocked'])
 | |
|     sys.exit (0)
 | |
| 
 | |
| ret = ogIsRepoLocked()
 | |
| 
 | |
| if ret is not None:
 | |
|     if   ret == True: sys.exit (0)
 | |
|     elif ret == False: sys.exit (1)
 | |
|     else: print (ret)
 |