mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Minor code clean up
This commit is contained in:
		
							parent
							
								
									85cb9251a0
								
							
						
					
					
						commit
						921d06e025
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										4
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -1023,8 +1023,8 @@ function shortcut_create { | |||
|   local dirname="${HOME}/.local/share/applications" | ||||
|   local filename="${HOME}/.local/share/applications/${VMNAME}.desktop" | ||||
| 
 | ||||
|   if [ ! -d ${dirname} ]; then | ||||
|     mkdir -p ${dirname} | ||||
|   if [ ! -d "${dirname}" ]; then | ||||
|     mkdir -p "${dirname}" | ||||
|   fi | ||||
|   cat << EOF > "${filename}" | ||||
| [Desktop Entry] | ||||
|  |  | |||
							
								
								
									
										3
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1770,8 +1770,7 @@ create_vm() { | |||
| 
 | ||||
| trap cleanup EXIT | ||||
| 
 | ||||
| if ((BASH_VERSINFO[0] < 4)) | ||||
| then | ||||
| if ((BASH_VERSINFO[0] < 4)); then | ||||
|     echo "Sorry, you need bash 4.0 or newer to run this script." | ||||
|     exit 1 | ||||
| fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue