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"
|
"BOSL"
|
||||||
"MCAD"
|
"MCAD"
|
||||||
"nutsnbolts"
|
"nutsnbolts"
|
||||||
"openscad-fillets"
|
|
||||||
"openscad-model-library"
|
"openscad-model-library"
|
||||||
"OpenSCAD-Arduino-Mounting-Library"
|
"OpenSCAD-Arduino-Mounting-Library"
|
||||||
"BezierScad"
|
"BezierScad"
|
||||||
|
@ -32,24 +31,22 @@ library_urls=(
|
||||||
"https://github.com/revarbat/BOSL.git"
|
"https://github.com/revarbat/BOSL.git"
|
||||||
"https://github.com/openscad/MCAD.git"
|
"https://github.com/openscad/MCAD.git"
|
||||||
"https://github.com/JohK/nutsnbolts.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/cznewt/openscad-model-library.git"
|
||||||
"https://github.com/kellyegan/OpenSCAD-Arduino-Mounting-Library.git"
|
"https://github.com/kellyegan/OpenSCAD-Arduino-Mounting-Library.git"
|
||||||
"https://github.com/chadkirby/BezierScad.git"
|
"https://github.com/chadkirby/BezierScad.git"
|
||||||
"https://github.com/SebiTimeWaster/Chamfers-for-OpenSCAD.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
|
for ((i = 0; i < ${#library_names[@]}; i++)); do
|
||||||
lib="${library_names[$i]}"
|
lib="${library_names[$i]}"
|
||||||
url="${library_urls[$i]}"
|
url="${library_urls[$i]}"
|
||||||
if ! [ -d "$lib" ]; then
|
if [ -d "$lib" ]; then
|
||||||
git clone "$url" "$lib"
|
echo "Removing existing directory for $lib..."
|
||||||
else
|
rm -rf "$lib"
|
||||||
cd "$lib"
|
|
||||||
git pull
|
|
||||||
cd ..
|
|
||||||
fi
|
fi
|
||||||
|
echo "Cloning $lib from $url..."
|
||||||
|
git clone "$url" "$lib"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Verify OpenSCAD installation
|
# Verify OpenSCAD installation
|
||||||
|
|
Loading…
Reference in New Issue