Update install.sh
This commit is contained in:
parent
f0348415df
commit
7407eb8fca
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/zsh
|
#!/bin/bash
|
||||||
|
|
||||||
if ! command -v brew >/dev/null 2>&1; then
|
if ! command -v brew >/dev/null 2>&1; then
|
||||||
echo "Homebrew is not installed. Please install Homebrew first: https://brew.sh/"
|
echo "Homebrew is not installed. Please install Homebrew first: https://brew.sh/"
|
||||||
|
@ -40,7 +40,7 @@ library_urls=(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Clone or update each library
|
# Clone or update each library
|
||||||
for i in {1..${#library_names[@]}}; 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
|
||||||
|
@ -59,7 +59,7 @@ if ! command -v openscad >/dev/null 2>&1; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify library setup
|
# Verify library setup
|
||||||
for lib in $library_names; do
|
for lib in "${library_names[@]}"; do
|
||||||
if [ ! -d "$lib" ]; then
|
if [ ! -d "$lib" ]; then
|
||||||
echo "Library $lib setup failed. Verify git and directory permissions."
|
echo "Library $lib setup failed. Verify git and directory permissions."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue