fix: enhance debugging output and temporarily disable strict mode in setup.sh
This commit is contained in:
11
setup.sh
11
setup.sh
@@ -2,7 +2,9 @@
|
||||
# setup.sh - Main dotfiles setup orchestrator
|
||||
# Runs all numbered scripts in sequence
|
||||
|
||||
set -euo pipefail
|
||||
# Temporarily disable strict mode for debugging
|
||||
# set -euo pipefail
|
||||
set -e
|
||||
|
||||
# Get the absolute path to the directory containing this script
|
||||
# This handles symlinks and relative paths to always find the dotfiles root
|
||||
@@ -39,7 +41,12 @@ if [ -d "$DOTFILES_DIR/scripts" ]; then
|
||||
script_name=$(basename "$script")
|
||||
log_info "Running $script_name..."
|
||||
|
||||
if bash "$script" "$DOTFILES_DIR"; then
|
||||
echo "DEBUG: About to run: bash '$script' '$DOTFILES_DIR'"
|
||||
bash "$script" "$DOTFILES_DIR"
|
||||
exit_code=$?
|
||||
echo "DEBUG: Script exited with code: $exit_code"
|
||||
|
||||
if [ $exit_code -eq 0 ]; then
|
||||
log_success "✓ $script_name completed"
|
||||
echo "DEBUG: Script '$script_name' completed successfully"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user