use resolve path for input parameters

This commit is contained in:
David Refoua 2022-10-14 23:07:45 +03:30 committed by GitHub
parent 813fd6d82f
commit 2189fe9483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,9 @@ Param(
[string]$saveTo = "$PSScriptRoot\..\build"
)
$cmderRoot = Resolve-Path $cmderRoot
$saveTo = Resolve-Path $saveTo
. "$PSScriptRoot\utils.ps1"
$ErrorActionPreference = "Stop"
Ensure-Executable "7z"