1
0

fix: execute setup scripts in separate shells for modularity

This commit is contained in:
2025-08-04 23:35:48 -05:00
parent 76abbd7d1d
commit f3496206eb

View File

@@ -29,8 +29,8 @@ if [ -d "$DOTFILES_DIR/scripts" ]; then
if [ -f "$script" ]; then if [ -f "$script" ]; then
script_name=$(basename "$script") script_name=$(basename "$script")
log_info "Running $script_name..." log_info "Running $script_name..."
# Source the script to run in the current shell and receive $DOTFILES_DIR as $1 # Execute each script in a separate shell for modularity
if source "$script" "$DOTFILES_DIR"; then if bash "$script" "$DOTFILES_DIR"; then
log_success "$script_name completed" log_success "$script_name completed"
else else
log_error "$script_name failed" log_error "$script_name failed"