From aadd083b9e2a81fdc9b4f84050d65007efdf4b51 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Thu, 4 Dec 2025 11:35:32 +0100 Subject: [PATCH] Fix Join-Path error for Windows Powershell --- .../startup-scripts/include-python/init-pwsh.ps1 | 2 +- .../src/shell-integration/startup-scripts/init-pwsh.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/safe-chain/src/shell-integration/startup-scripts/include-python/init-pwsh.ps1 b/packages/safe-chain/src/shell-integration/startup-scripts/include-python/init-pwsh.ps1 index 2edc93b..c8d3310 100644 --- a/packages/safe-chain/src/shell-integration/startup-scripts/include-python/init-pwsh.ps1 +++ b/packages/safe-chain/src/shell-integration/startup-scripts/include-python/init-pwsh.ps1 @@ -1,6 +1,6 @@ # Use cross-platform path separator (: on Unix, ; on Windows) $pathSeparator = if ($IsWindows) { ';' } else { ':' } -$safeChainBin = Join-Path $HOME '.safe-chain' 'bin' +$safeChainBin = Join-Path (Join-Path $HOME '.safe-chain') 'bin' $env:PATH = "$env:PATH$pathSeparator$safeChainBin" function npx { diff --git a/packages/safe-chain/src/shell-integration/startup-scripts/init-pwsh.ps1 b/packages/safe-chain/src/shell-integration/startup-scripts/init-pwsh.ps1 index 4f58406..78228a0 100644 --- a/packages/safe-chain/src/shell-integration/startup-scripts/init-pwsh.ps1 +++ b/packages/safe-chain/src/shell-integration/startup-scripts/init-pwsh.ps1 @@ -1,6 +1,6 @@ # Use cross-platform path separator (: on Unix, ; on Windows) $pathSeparator = if ($IsWindows) { ';' } else { ':' } -$safeChainBin = Join-Path $HOME '.safe-chain' 'bin' +$safeChainBin = Join-Path (Join-Path $HOME '.safe-chain') 'bin' $env:PATH = "$env:PATH$pathSeparator$safeChainBin" function npx {