Merge pull request 'Filter only executable files in local tools copying' (#7) from push-yvqlsumstnkp into main

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2026-03-30 12:32:14 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ fi
LOCAL_TOOLS_DIR="$CLAUDE_DIR/tools-local"
if [[ -d "$LOCAL_TOOLS_DIR" ]]; then
for src in "$LOCAL_TOOLS_DIR"/*; do
[[ -f "$src" ]] || continue
[[ -f "$src" && -x "$src" ]] || continue
name="$(basename "$src")"
cp "$src" "$CLAUDE_DIR/llm-functions/bin/$name"
chmod +x "$CLAUDE_DIR/llm-functions/bin/$name"

View File

@@ -68,7 +68,7 @@ LOCAL_TOOLS_DIR="$CLAUDE_DIR/tools-local"
if [[ -d "$LOCAL_TOOLS_DIR" ]]; then
count=0
for src in "$LOCAL_TOOLS_DIR"/*; do
[[ -f "$src" ]] || continue
[[ -f "$src" && -x "$src" ]] || continue
name="$(basename "$src")"
dest="$CLAUDE_DIR/llm-functions/bin/$name"
cp "$src" "$dest"