🐞 fix: Code cleanup

This commit is contained in:
Keith Solomon
2025-10-26 15:58:27 -05:00
parent fd3d14e37b
commit 605b14f169

View File

@@ -61,9 +61,9 @@ function RandPass(){
}
# Resolve script folder + absolute phar
$ScriptRoot = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Definition }
$ScriptRoot = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Definition }
$PharFullPath= Join-Path $ScriptRoot 'wp-cli.phar'
$PharFullPath = Join-Path $ScriptRoot 'wp-cli.phar'
if (!(Test-Path $PharFullPath)) { throw "wp-cli.phar not found at: $PharFullPath" }