| 
									
										
										
										
											2023-02-21 17:15:54 -06:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # . CONFIG.sh | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # set -o xtrace       ## To debug scripts | 
					
						
							|  |  |  | # set -o errexit      ## To exit on error | 
					
						
							|  |  |  | # set -o errunset     ## To exit if a variable is referenced but not set | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function main() { | 
					
						
							|  |  |  |     call_path=`pwd` | 
					
						
							| 
									
										
										
										
											2023-03-27 21:21:28 -05:00
										 |  |  |     path="" | 
					
						
							| 
									
										
										
										
											2023-02-21 17:15:54 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-27 21:21:28 -05:00
										 |  |  |     if [[ ! "${1::1}" == /* ]]; then | 
					
						
							|  |  |  |         path="${call_path}/${1}" | 
					
						
							|  |  |  |     else | 
					
						
							|  |  |  |         path="${1}" | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     cd "/opt/" | 
					
						
							| 
									
										
										
										
											2023-02-21 17:15:54 -06:00
										 |  |  |     python /opt/cornea.zip "$@" | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | main "$@"; |