mirror of https://github.com/garrytan/gstack.git
fix(settings-hook): respect CLAUDE_CONFIG_DIR when resolving settings.json
gstack-settings-hook hardcoded $HOME/.claude/settings.json, so users running
Claude Code with a relocated CLAUDE_CONFIG_DIR had hooks written to a config
file Claude never reads. Resolve ${CLAUDE_CONFIG_DIR:-$HOME/.claude} first;
the explicit GSTACK_SETTINGS_FILE override still wins.
Partial #349.
Contributed by @andrefogelman (PR #2239).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
dcdd28ce34
commit
0572125a5b
|
|
@ -26,7 +26,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
ACTION="${1:-}"
|
||||
SETTINGS_FILE="${GSTACK_SETTINGS_FILE:-$HOME/.claude/settings.json}"
|
||||
SETTINGS_FILE="${GSTACK_SETTINGS_FILE:-${CLAUDE_CONFIG_DIR:-$HOME/.claude}/settings.json}"
|
||||
|
||||
if [ -z "$ACTION" ]; then
|
||||
cat <<EOF >&2
|
||||
|
|
|
|||
Loading…
Reference in New Issue