From 0b3b6f441cdb50ffae2d62371a976e0004af260e Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Mon, 4 Aug 2025 22:15:33 -0500 Subject: [PATCH] fix: enhance debug output during script execution in setup.sh --- setup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup.sh b/setup.sh index 414bc68..1ed7dd3 100644 --- a/setup.sh +++ b/setup.sh @@ -29,22 +29,34 @@ if [ -d "$DOTFILES_DIR/scripts" ]; then # Get list of numbered scripts, sorted script_files=$(find "$DOTFILES_DIR/scripts" -name '[0-9][0-9]-*.sh' -type f | sort) + echo "DEBUG: script_files found:" + echo "$script_files" + echo "DEBUG: Starting loop..." + for script in $script_files; do + echo "DEBUG: Processing script: '$script'" if [ -f "$script" ]; then script_name=$(basename "$script") log_info "Running $script_name..." if bash "$script" "$DOTFILES_DIR"; then log_success "✓ $script_name completed" + echo "DEBUG: Script '$script_name' completed successfully" else log_error "✗ $script_name failed" exit 1 fi ((script_count++)) + echo "DEBUG: script_count is now: $script_count" + else + echo "DEBUG: '$script' is not a file" fi + echo "DEBUG: End of loop iteration for '$script'" done + echo "DEBUG: Loop completed. Final script_count: $script_count" + if [ $script_count -eq 0 ]; then log_warning "No numbered scripts found in scripts/ directory" else