Skip to content

Commit 1e49d5f

Browse files
committed
fix(local-mounts): 🐛 improve error handling in directory copy
1 parent 75e5bdf commit 1e49d5f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/local-mounts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _sync_dir_from_mount() {
5353

5454
if [ -d "${source_dir}" ]; then
5555
mkdir -p "${target_dir}" 2>/dev/null || true
56-
if ! cp -a "${source_dir}/." "${target_dir}/" 2>&1; then
56+
if ! cp -a "${source_dir}/." "${target_dir}/" 2>/dev/null; then
5757
echo "⚠️ cp -a failed for ${config_name}, falling back to file-by-file copy"
5858
find "${source_dir}" -maxdepth 1 -type f -exec cp -f {} "${target_dir}/" \;
5959
fi

src/peon-ping/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ hooks = data.setdefault("hooks", {})
237237
238238
# VS Code hook event names (PascalCase, auto-mapped from lowerCamelCase by VS Code).
239239
# See https://code.visualstudio.com/docs/copilot/customization/hooks#_hook-lifecycle-events
240-
new_entries = {
240+
# VS Code/Copilot hook event names as written in hooks.json.
241241
"SessionStart": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh SessionStart"}],
242242
"UserPromptSubmit": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh UserPromptSubmit"}],
243243
"PostToolUse": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh PostToolUse"}],
244244
"Stop": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh Stop"}]
245245
}
246-
246+
"ErrorOccurred": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh ErrorOccurred"}]
247247
for event, entries in new_entries.items():
248248
event_list = hooks.setdefault(event, [])
249249
existing_cmds = [e.get("bash", e.get("command", "")) for e in event_list]

0 commit comments

Comments
 (0)