scriptHelp exits by passing error code if provided
This commit is contained in:
		
							parent
							
								
									dadb83cff8
								
							
						
					
					
						commit
						51b550195c
					
				@ -18,8 +18,8 @@ stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]"
 | 
				
			|||||||
### scriptHelp -- display usage information for this script
 | 
					### scriptHelp -- display usage information for this script
 | 
				
			||||||
function scriptHelp {
 | 
					function scriptHelp {
 | 
				
			||||||
    echo "In the future, I will be something helpful!"
 | 
					    echo "In the future, I will be something helpful!"
 | 
				
			||||||
    # do NOT use quit function, just exit with error code
 | 
					    # exit with error code IF passed
 | 
				
			||||||
    exit 98
 | 
					    quit $1
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### quit -- exit the script after logging any errors, warnings, etc. and 
 | 
					### quit -- exit the script after logging any errors, warnings, etc. and 
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user