Skip to content

Commit 0ae03a2

Browse files
committed
Fix grep pattern in session-start hook: local_proxy comes before 127.0.0.1 in URL
1 parent a96e3b4 commit 0ae03a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.claude/session-start-global-deny.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PROXY_BASE=""
6565
for dir in /home/user/*/; do
6666
if [ -d "$dir/.git" ]; then
6767
url=$(git -C "$dir" remote get-url origin 2>/dev/null || true)
68-
if echo "$url" | grep -q '127.0.0.1.*local_proxy'; then
68+
if echo "$url" | grep -q 'local_proxy.*127.0.0.1'; then
6969
# Extract base URL: http://local_proxy@127.0.0.1:PORT/git
7070
PROXY_BASE=$(echo "$url" | sed 's|\(http://local_proxy@127\.0\.0\.1:[0-9]*/git\)/.*|\1|')
7171
break

0 commit comments

Comments
 (0)