1
0

chore: squash history up to now

This commit is contained in:
2025-08-04 23:24:00 -05:00
parent c76ed8e31e
commit 3ee636a0dd
2 changed files with 7 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ check_dependencies() {
echo ""
done
exit 1
return 1
fi
log_success "All dependencies satisfied"

View File

@@ -23,28 +23,27 @@ log_info "Working directory: $DOTFILES_DIR"
if [ -d "$DOTFILES_DIR/scripts" ]; then
log_info "Running setup scripts..."
# Look for numbered scripts and run them in order
script_count=0
for script in "$DOTFILES_DIR"/scripts/[0-9][0-9]-*.sh; do
# Find and run all numbered scripts using shell globbing
for script in "$DOTFILES_DIR/scripts"/[0-9][0-9]-*.sh; do
if [ -f "$script" ]; then
script_name=$(basename "$script")
log_info "Running $script_name..."
if bash "$script" "$DOTFILES_DIR"; then
# Source the script to run in the current shell and receive $DOTFILES_DIR as $1
if source "$script" "$DOTFILES_DIR"; then
log_success "$script_name completed"
else
log_error "$script_name failed"
exit 1
fi
((script_count++))
((++script_count))
fi
done
if [ $script_count -eq 0 ]; then
log_warning "No numbered scripts found in scripts/ directory"
else
log_success "Completed $script_count setup script(s)"
log_success "Completed $script_count setup scripts"
fi
else
log_error "No scripts directory found! Something went wrong with the installation."