mirror of
				https://github.com/RAIRLab/Spectra.git
				synced 2025-10-26 22:51:19 +00:00 
			
		
		
		
	Argument count check
This commit is contained in:
		
							parent
							
								
									d6bc88566f
								
							
						
					
					
						commit
						8790ccde66
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		|  | @ -1,6 +1,18 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| # TODO: Argument check and show usage | ||||
| set -o errexit | ||||
| set -o nounset | ||||
| 
 | ||||
| show_usage() { | ||||
|     echo "Usage: ./run_spectra.sh [FILENAME]" | ||||
|     exit 1 | ||||
| } | ||||
| 
 | ||||
| # Check argument count | ||||
| if [ "$#" -ne 1 ]; then | ||||
|     show_usage | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| mvn -q exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$1" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue