Skip to content

Commit dffacb6

Browse files
lucaspimentelclaude
andcommitted
fix: update install scripts for root directory
- Fix RepoRoot path in install-local.ps1 (now uses $PSScriptRoot directly) - Update example paths in both install scripts - Scripts now work correctly from root directory location 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 443d118 commit dffacb6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

install-local.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
Overwrite existing installation without prompting.
1414
1515
.EXAMPLE
16-
./scripts/install-local.ps1
16+
./install-local.ps1
1717
Build and install PSCue from source.
1818
1919
.EXAMPLE
20-
./scripts/install-local.ps1 -Force
20+
./install-local.ps1 -Force
2121
Build and install, overwriting any existing installation.
2222
#>
2323

@@ -59,7 +59,7 @@ function Write-Error {
5959
}
6060

6161
# Get the repository root directory
62-
$RepoRoot = Split-Path $PSScriptRoot -Parent
62+
$RepoRoot = $PSScriptRoot
6363
Write-Info "Repository: $RepoRoot"
6464

6565
# Detect platform and architecture

install-remote.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
Overwrite existing installation without prompting.
1818
1919
.EXAMPLE
20-
irm https://raw.githubusercontent.com/lucaspimentel/PSCue/main/scripts/install-remote.ps1 | iex
20+
irm https://raw.githubusercontent.com/lucaspimentel/PSCue/main/install-remote.ps1 | iex
2121
Download and install the latest version of PSCue.
2222
2323
.EXAMPLE
24-
$version = "1.0.0"; irm https://raw.githubusercontent.com/lucaspimentel/PSCue/main/scripts/install-remote.ps1 | iex
24+
$version = "1.0.0"; irm https://raw.githubusercontent.com/lucaspimentel/PSCue/main/install-remote.ps1 | iex
2525
Download and install a specific version of PSCue.
2626
2727
.EXAMPLE
28-
./scripts/install-remote.ps1 -Version "1.0.0" -Force
28+
./install-remote.ps1 -Version "1.0.0" -Force
2929
Install a specific version, overwriting any existing installation.
3030
#>
3131

@@ -82,7 +82,7 @@ if ($RID -notin $SupportedPlatforms) {
8282
Write-Error "Platform '$RID' is not currently supported."
8383
Write-Info "Supported platforms: $($SupportedPlatforms -join ', ')"
8484
Write-Info ""
85-
Write-Info "To build from source, use: ./scripts/install-local.ps1"
85+
Write-Info "To build from source, use: ./install-local.ps1"
8686
exit 1
8787
}
8888

0 commit comments

Comments
 (0)