mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 02:49:19 +00:00 
			
		
		
		
	Update verbose mode
- Remove `set -x` - Only entries with `$STD` will be shown
This commit is contained in:
		
							parent
							
								
									1eaf2b2988
								
							
						
					
					
						commit
						9ca401e30f
					
				| @ -6,7 +6,7 @@ | ||||
| # https://github.com/tteck/Proxmox/raw/main/LICENSE | ||||
| 
 | ||||
| # This sets verbose mode if the global variable is set to "yes" | ||||
| if [ "$VERBOSE" == "yes" ]; then set -x; fi | ||||
| # if [ "$VERBOSE" == "yes" ]; then set -x; fi | ||||
| 
 | ||||
| # This function sets color variables for formatting output in the terminal | ||||
| YW=$(echo "\033[33m") | ||||
|  | ||||
| @ -17,7 +17,6 @@ color() { | ||||
| 
 | ||||
| verb_ip6() { | ||||
|   if [ "$VERBOSE" = "yes" ]; then | ||||
|     set -x | ||||
|     STD="" | ||||
|   else STD="silent"; fi | ||||
|   silent() { "$@" >/dev/null 2>&1; } | ||||
|  | ||||
| @ -481,7 +481,7 @@ start() { | ||||
| 
 | ||||
| # This function collects user settings and integrates all the collected information. | ||||
| build_container() { | ||||
|   if [ "$VERB" == "yes" ]; then set -x; fi | ||||
| #  if [ "$VERB" == "yes" ]; then set -x; fi | ||||
| 
 | ||||
|   if [ "$CT_TYPE" == "1" ]; then | ||||
|     FEATURES="keyctl=1,nesting=1" | ||||
|  | ||||
| @ -18,7 +18,6 @@ color() { | ||||
| # This function enables IPv6 if it's not disabled and sets verbose mode if the global variable is set to "yes" | ||||
| verb_ip6() { | ||||
|   if [ "$VERBOSE" = "yes" ]; then | ||||
|     set -x | ||||
|     STD="" | ||||
|   else STD="silent"; fi | ||||
|   silent() { "$@" >/dev/null 2>&1; } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user