Update install.sh
This commit is contained in:
		
							parent
							
								
									7407eb8fca
								
							
						
					
					
						commit
						ff64d35f59
					
				
							
								
								
									
										15
									
								
								install.sh
								
								
								
								
							
							
						
						
									
										15
									
								
								install.sh
								
								
								
								
							|  | @ -21,7 +21,6 @@ library_names=( | |||
|   "BOSL" | ||||
|   "MCAD" | ||||
|   "nutsnbolts" | ||||
|   "openscad-fillets" | ||||
|   "openscad-model-library" | ||||
|   "OpenSCAD-Arduino-Mounting-Library" | ||||
|   "BezierScad" | ||||
|  | @ -32,24 +31,22 @@ library_urls=( | |||
|   "https://github.com/revarbat/BOSL.git" | ||||
|   "https://github.com/openscad/MCAD.git" | ||||
|   "https://github.com/JohK/nutsnbolts.git" | ||||
|   "https://github.com/jfhbrook/openscad-fillets.git" | ||||
|   "https://github.com/cznewt/openscad-model-library.git" | ||||
|   "https://github.com/kellyegan/OpenSCAD-Arduino-Mounting-Library.git" | ||||
|   "https://github.com/chadkirby/BezierScad.git" | ||||
|   "https://github.com/SebiTimeWaster/Chamfers-for-OpenSCAD.git" | ||||
| ) | ||||
| 
 | ||||
| # Clone or update each library | ||||
| # Clone or update each library (force cloning) | ||||
| for ((i = 0; i < ${#library_names[@]}; i++)); do | ||||
|   lib="${library_names[$i]}" | ||||
|   url="${library_urls[$i]}" | ||||
|   if ! [ -d "$lib" ]; then | ||||
|     git clone "$url" "$lib" | ||||
|   else | ||||
|     cd "$lib" | ||||
|     git pull | ||||
|     cd .. | ||||
|   if [ -d "$lib" ]; then | ||||
|     echo "Removing existing directory for $lib..." | ||||
|     rm -rf "$lib" | ||||
|   fi | ||||
|   echo "Cloning $lib from $url..." | ||||
|   git clone "$url" "$lib" | ||||
| done | ||||
| 
 | ||||
| # Verify OpenSCAD installation | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue