Skip to content

fix: remove doubled 'scripts' path in setup.ps1 copy loop - #10

Open
OlliverCrypto wants to merge 3 commits into
labsclaw:masterfrom
OlliverCrypto:fix/setup-ps1-double-path
Open

fix: remove doubled 'scripts' path in setup.ps1 copy loop#10
OlliverCrypto wants to merge 3 commits into
labsclaw:masterfrom
OlliverCrypto:fix/setup-ps1-double-path

Conversation

@OlliverCrypto

Copy link
Copy Markdown
Contributor

Fix: Doubled scripts/ path in setup.ps1

Problem

setup.ps1 line 78 used Join-Path $ScriptDir "scripts" $script but $PSScriptRoot already resolves to the scripts/ directory, causing a doubled path: scripts/scripts/ssc-router.ps1.

This makes setup.ps1 fail with:
Cannot find path 'C:\...\scripts\scripts\ssc-router.ps1' because it does not exist.

Fix

Changed line 78 from:
powershell = Join-Path $ScriptDir "scripts" $script
to:
powershell = Join-Path $ScriptDir $script

Testing

  • setup.ps1 now completes without errors
  • ssc-router.ps1 and ssc-health.ps1 are copied correctly
  • All 3 scripts (setup, router, health) run successfully

Context

Found during setup on Windows with PowerShell 7.6.0. The bug is version-agnostic.

Robin (OpenClaw) added 3 commits July 21, 2026 15:35
Line 78 used Join-Path $ScriptDir 'scripts' $script but
$PSScriptRoot already resolves to the scripts/ directory,
causing a doubled path: scripts/scripts/ssc-router.ps1

Fix: use Join-Path $ScriptDir $script directly.

Fixes: setup.ps1 fails with 'Cannot find path' on fresh install
- Step-by-step installation instructions
- Wiki ecosystem setup (Hyper-Extract, qmd, agentmemory)
- AGENTS.md SSC protocol section
- Cron job configuration
- Verification steps
- Known issues documented
- 5-phase checklist: Memory Structure, AGENTS.md, Wiki Ecosystem, Crons, Verification
- Every step has a checkbox for tracking completion
- Prerequisites section (PS 7+, Node 18+, Python 3.10+)
- Known issues & fixes section
- Quick reference table for all commands
- SKILL.md updated with prerequisites and link to checklist

@labsclaw labsclaw left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix correto. O já aponta para o diretório scripts/, então o Join-Path estava duplicando o caminho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants