qsgen2: Squash some unwanted debug messages
This commit is contained in:
		
							
								
								
									
										7
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								qsgen2
									
									
									
									
									
								
							@@ -113,6 +113,13 @@ fi
 | 
				
			|||||||
zmodload zsh/files
 | 
					zmodload zsh/files
 | 
				
			||||||
zmodload zsh/datetime
 | 
					zmodload zsh/datetime
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [[ ${globaldebug} == "true" ]]; then
 | 
				
			||||||
 | 
					  local debug=true
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					  # If you want to debug this function only, set this to true
 | 
				
			||||||
 | 
					  local debug=false
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
# Check for, an source, the config file for this specific website
 | 
					# Check for, an source, the config file for this specific website
 | 
				
			||||||
if [[ -f $(pwd)/config ]]; then
 | 
					if [[ -f $(pwd)/config ]]; then
 | 
				
			||||||
  if (${debug}); then echo "${red}Config file found and sourced${end}\n- ${yellow} - $(pwd)/config${end}"; fi
 | 
					  if (${debug}); then echo "${red}Config file found and sourced${end}\n- ${yellow} - $(pwd)/config${end}"; fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user