🐞 fix: Code cleanup
This commit is contained in:
@@ -61,9 +61,9 @@ function RandPass(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Resolve script folder + absolute phar
|
# 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" }
|
if (!(Test-Path $PharFullPath)) { throw "wp-cli.phar not found at: $PharFullPath" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user