Update install.sh

This commit is contained in:
colin 2024-12-12 12:33:10 -05:00
parent f0348415df
commit 7407eb8fca
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/zsh
#!/bin/bash
if ! command -v brew >/dev/null 2>&1; then
echo "Homebrew is not installed. Please install Homebrew first: https://brew.sh/"
@ -40,7 +40,7 @@ library_urls=(
)
# Clone or update each library
for i in {1..${#library_names[@]}}; do
for ((i = 0; i < ${#library_names[@]}; i++)); do
lib="${library_names[$i]}"
url="${library_urls[$i]}"
if ! [ -d "$lib" ]; then
@ -59,7 +59,7 @@ if ! command -v openscad >/dev/null 2>&1; then
fi
# Verify library setup
for lib in $library_names; do
for lib in "${library_names[@]}"; do
if [ ! -d "$lib" ]; then
echo "Library $lib setup failed. Verify git and directory permissions."
exit 1