1
0

fix: revert to universal for loop for script execution in setup.sh

This commit is contained in:
2025-08-04 22:40:52 -05:00
parent 9ce597b847
commit 6618c441d4

View File

@@ -25,9 +25,9 @@ if [ -d "$DOTFILES_DIR/scripts" ]; then
script_count=0
# Find all numbered scripts and run them in order (classic for loop)
mapfile -t scripts < <(find "$DOTFILES_DIR/scripts" -name '[0-9][0-9]-*.sh' -type f | sort)
for script in "${scripts[@]}"; do
# Find all numbered scripts and run them in order (universal for loop)
scripts=$(find "$DOTFILES_DIR/scripts" -name '[0-9][0-9]-*.sh' -type f | sort)
for script in $scripts; do
script_name=$(basename "$script")
log_info "Running $script_name..."
if bash "$script" "$DOTFILES_DIR"; then