mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	suppress output if creating or removing files/directories fail
This commit is contained in:
		
							parent
							
								
									524e226fb8
								
							
						
					
					
						commit
						525269512c
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		
							
								
								
									
										9
									
								
								dh
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								dh
									
										
									
									
									
								
							|  | @ -169,7 +169,7 @@ function install_process() { | ||||||
| # basic ----------------------------------- | # basic ----------------------------------- | ||||||
| function renew_ready() { | function renew_ready() { | ||||||
| 	cd "$VMS_DIR" || exit 1 | 	cd "$VMS_DIR" || exit 1 | ||||||
| 	rm "$DH_CONFIG_DIR"/ready/*.desktop | 	rm "$DH_CONFIG_DIR"/ready/*.desktop >/dev/null 2>&1 | ||||||
| #	for files in "$VMS_DIR"/*; do | #	for files in "$VMS_DIR"/*; do | ||||||
| #	if [ ! -e *.conf ]; then | #	if [ ! -e *.conf ]; then | ||||||
| #		echo $"No .conf files found" | #		echo $"No .conf files found" | ||||||
|  | @ -203,7 +203,7 @@ Categories=System;Virtualization;" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function renew_supported() { | function renew_supported() { | ||||||
| 	rm "$DH_CONFIG_DIR"/supported/*.desktop | 	rm "$DH_CONFIG_DIR"/supported/*.desktop >/dev/null 2>&1 | ||||||
| 	# get supported VMs | 	# get supported VMs | ||||||
| 	"$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/supported.md" | 	"$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/supported.md" | ||||||
| 	while read -r get_name; do | 	while read -r get_name; do | ||||||
|  | @ -248,7 +248,7 @@ Categories=System;Virtualization;" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function renew_supported_test() { | function renew_supported_test() { | ||||||
| 	rm "$DH_CONFIG_DIR"/test/ubuntu.desktop | 	rm "$DH_CONFIG_DIR"/test/ubuntu.desktop >/dev/null 2>&1 | ||||||
| 	# get supported VMs | 	# get supported VMs | ||||||
| 	"$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/ubuntu.md" | 	"$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/ubuntu.md" | ||||||
| 	while read -r get_name; do | 	while read -r get_name; do | ||||||
|  | @ -301,6 +301,7 @@ function run_gui() { | ||||||
| 
 | 
 | ||||||
| function run_tui() { | function run_tui() { | ||||||
| 	check_tui_dependencies | 	check_tui_dependencies | ||||||
|  | 	cd "$VMS_DIR" || exit 1 | ||||||
| 	vms=(*.conf) | 	vms=(*.conf) | ||||||
| 	printf ' Prepared VMs:\n-------------\n\n' | 	printf ' Prepared VMs:\n-------------\n\n' | ||||||
| 	# Check if there are any VMs | 	# Check if there are any VMs | ||||||
|  | @ -509,7 +510,7 @@ do | ||||||
| 			isos_to_dir | 			isos_to_dir | ||||||
| 			shift | 			shift | ||||||
| 			;; | 			;; | ||||||
| 		e|test) | 		e|'test') | ||||||
| 			echo $"Running supported test..." | 			echo $"Running supported test..." | ||||||
| 			renew_supported_test | 			renew_supported_test | ||||||
| 			shift | 			shift | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue