fix(hooks): use relocated build commands
This commit is contained in:
1 parent
117cdb33ab
commit
145169dea8
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
param([string]$RepositoryRoot = (Split-Path $PSScriptRoot -Parent | Split-Path -Parent | Split-Path -Parent))
|
||||
$build = Join-Path $RepositoryRoot 'scripts/build.ps1'
|
||||
$build = Join-Path $RepositoryRoot 'scripts/commands/build.ps1'
|
||||
if (-not (Test-Path $build)) { Write-Error 'Build script is missing.'; exit 1 }
|
||||
$shellCommand = if ([Environment]::OSVersion.Platform -eq [PlatformID]::Win32NT) { 'powershell' } else { 'pwsh' }
|
||||
& $shellCommand -NoProfile -ExecutionPolicy Bypass -File $build
|
||||
|
||||
Reference in new issue
Block a user