fix(install.sh): add HOME directory validation #15

Merged
claudiomaradonna merged 2 commits from chore/update-config into main 2026-05-02 19:44:47 +02:00

What changes

  • Validates the HOME directory variable within the install script.
  • Prevents execution if the HOME environment variable is missing or invalid.
  • Adds error handling to ensure a clean failure state.

Why

The installation process previously proceeded without verifying the existence or validity of the HOME directory. This change ensures that the script fails safely if the environment is not configured correctly, preventing potential runtime errors or unexpected behavior during setup.

Merge strategy: rebase

## What changes * Validates the HOME directory variable within the install script. * Prevents execution if the HOME environment variable is missing or invalid. * Adds error handling to ensure a clean failure state. ## Why The installation process previously proceeded without verifying the existence or validity of the HOME directory. This change ensures that the script fails safely if the environment is not configured correctly, preventing potential runtime errors or unexpected behavior during setup. **Merge strategy**: rebase
- Added `.claude/settings.json` for attribution configuration
- Expanded `.gitignore` to cover:
  - Environment files (`.env`, `.env.*`)
  - OS-specific files (`.DS_Store`, `Thumbs.db`)
  - Editor/IDE files (`.vscode/`, `.idea/`, `*.swp`, `*~`)
- Validate that the HOME directory exists
- Ensure HOME directory is writable before installation

This prevents silent failures when the script is run from an invalid HOME directory.
claudiomaradonna deleted branch chore/update-config 2026-05-02 19:44:52 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/claude-jail!15
No description provided.