1
0

fix: update script execution logging for clarity and accuracy

This commit is contained in:
2025-08-04 23:01:08 -05:00
parent b172b76e0d
commit abc38ce54c

View File

@@ -24,18 +24,25 @@ if [ -d "$DOTFILES_DIR/scripts" ]; then
log_info "Running setup scripts..." log_info "Running setup scripts..."
script_count=0 script_count=0
# Find and log all numbered scripts using shell globbing # Find and run all numbered scripts using shell globbing
for script in "$DOTFILES_DIR/scripts"/[0-9][0-9]-*; do for script in "$DOTFILES_DIR/scripts"/[0-9][0-9]-*; do
if [ -f "$script" ]; then if [ -f "$script" ]; then
script_name=$(basename "$script") script_name=$(basename "$script")
log_info "Found script: $script_name" log_info "Running $script_name..."
if bash "$script" "$DOTFILES_DIR"; then
log_success "$script_name completed"
else
log_error "$script_name failed"
exit 1
fi
((script_count++))
fi fi
done done
if [ $script_count -eq 0 ]; then if [ $script_count -eq 0 ]; then
log_warning "No numbered scripts found in scripts/ directory" log_warning "No numbered scripts found in scripts/ directory"
else else
log_success "Completed setup scripts" log_success "Completed $script_count setup scripts"
fi fi
else else
log_error "No scripts directory found! Something went wrong with the installation." log_error "No scripts directory found! Something went wrong with the installation."