Rename variables to better respect the key-value pair nature of the config
This commit is contained in:
		
							
								
								
									
										6
									
								
								ptgdp
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								ptgdp
									
									
									
									
									
								
							@@ -354,10 +354,10 @@ main() {
 | 
				
			|||||||
		while read line; do
 | 
							while read line; do
 | 
				
			||||||
			# If the line has an equals sign and isn't a comment
 | 
								# If the line has an equals sign and isn't a comment
 | 
				
			||||||
			if [ "$line" != "${line#*=}" ] && validateline "$line"; then
 | 
								if [ "$line" != "${line#*=}" ] && validateline "$line"; then
 | 
				
			||||||
				local varname="${line%=*}"
 | 
									local key="${line%=*}"
 | 
				
			||||||
				local value="${line#*=}"
 | 
									local value="${line#*=}"
 | 
				
			||||||
				_config[$varname]="$value"
 | 
									_config[$key]="$value"
 | 
				
			||||||
				log "Setting $varname to $value" 2
 | 
									log "Setting $key to $value" 2
 | 
				
			||||||
			fi
 | 
								fi
 | 
				
			||||||
		done < "$_optconfigfile"
 | 
							done < "$_optconfigfile"
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user