-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·21 lines (19 loc) · 817 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·21 lines (19 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# install — top-level entry point for installing claude-charter into a
# target project.
#
# Usage:
# ./install <target-dir> [extra flags forwarded to scripts/install-to.sh]
#
# Examples:
# ./install ~/Projects/my-app # safe default: merge CLAUDE.md
# ./install . # install into current dir
# ./install ~/Projects/my-app --dry-run # preview only
# ./install ~/Projects/my-app --replace-claude-md # overwrite CLAUDE.md
#
# This wrapper exists so first-time users do not have to know about
# scripts/install-to.sh or the --merge-claude-md flag (which is the
# default behavior for the underlying script anyway).
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec -a "./install" "$HERE/scripts/install-to.sh" "$@"