From 6618c441d4a641acffab7a8e58db7baf514e80c5 Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Mon, 4 Aug 2025 22:40:52 -0500 Subject: [PATCH] fix: revert to universal for loop for script execution in setup.sh --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 38cc084..36369db 100644 --- a/setup.sh +++ b/setup.sh @@ -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