mirror of
				https://github.com/Jonny007-MKD/OTR-DecodeAll
				synced 2025-10-30 15:35:37 +01:00 
			
		
		
		
	Moving config to config.sample
This commit is contained in:
		
							parent
							
								
									66f262bc71
								
							
						
					
					
						commit
						45a7e08903
					
				
					 3 changed files with 9 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | ||||||
| .log | .log | ||||||
|  | ^config$ | ||||||
|  |  | ||||||
							
								
								
									
										11
									
								
								otrDecodeAll
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								otrDecodeAll
									
									
									
									
									
								
							|  | @ -108,12 +108,17 @@ function addLabel { | ||||||
| 
 | 
 | ||||||
| function funcGetConfig { | function funcGetConfig { | ||||||
| 	if [ ! -r "$PwD/config" ]; then | 	if [ ! -r "$PwD/config" ]; then | ||||||
| 		funcLog 1 "$PwD/config does not exist" | 		if [ ! -r "$PwD/config.sample" ]; then | ||||||
| 		exit 1 | 			funcLog 1 "$PwD/config does not exist!" | ||||||
|  | 			exit 1 | ||||||
|  | 		else | ||||||
|  | 			funcLog 2 "You should use $PwD/config insted of config.sample!" | ||||||
|  | 			. "$PwD/config.sample" | ||||||
|  | 		fi | ||||||
| 	else | 	else | ||||||
| 		. "$PwD/config" | 		. "$PwD/config" | ||||||
| 		funcConfigPre |  | ||||||
| 	fi | 	fi | ||||||
|  | 	funcConfigPre | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function funcPerformChecks { | function funcPerformChecks { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jonny007-MKD
						Jonny007-MKD