Added parameter check so lack of '-' triggers help screen also
This commit is contained in:
		
							parent
							
								
									43f97e6fa0
								
							
						
					
					
						commit
						04feb2644f
					
				| @ -163,7 +163,7 @@ warn503="   ${ltYellow}Web users will NOT be informed the server is down!${norma | ||||
| ### Process script parameters | ||||
| 
 | ||||
| # if no parameters provided, then show the help page and exit with error | ||||
| if [ -z $1 ]; then | ||||
| if [ -z "$1" ] || [[ ! "$1" =~ ^- ]]; then | ||||
|     # show script help page | ||||
|     scriptHelp | ||||
| fi | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user