use absolute path for default cmder root dir

This commit is contained in:
David Refoua 2022-10-14 22:28:50 +03:30 committed by GitHub
parent e1c14f6c7e
commit 1fbe2f7c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,10 @@ Param(
# -whatif switch to not actually make changes # -whatif switch to not actually make changes
# Path to the vendor configuration source file # Path to the vendor configuration source file
[string]$cmderRoot = "..", [string]$cmderRoot = "$PSScriptRoot\..",
# Vendor folder locaton # Vendor folder locaton
[string]$saveTo = "..\build" [string]$saveTo = "$PSScriptRoot\..\build"
) )
. "$PSScriptRoot\utils.ps1" . "$PSScriptRoot\utils.ps1"
@ -55,4 +55,4 @@ foreach ($t in $targets.GetEnumerator()) {
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
$hash = (Digest-Hash "$saveTo\$($t.Name)") $hash = (Digest-Hash "$saveTo\$($t.Name)")
Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash) Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash)
} }