diff --git a/scripts/pack.ps1 b/scripts/pack.ps1 index 8382d5f..b53bec2 100644 --- a/scripts/pack.ps1 +++ b/scripts/pack.ps1 @@ -29,10 +29,10 @@ Param( # -whatif switch to not actually make changes # Path to the vendor configuration source file - [string]$cmderRoot = "..", + [string]$cmderRoot = "$PSScriptRoot\..", # Vendor folder locaton - [string]$saveTo = "..\build" + [string]$saveTo = "$PSScriptRoot\..\build" ) . "$PSScriptRoot\utils.ps1" @@ -55,4 +55,4 @@ foreach ($t in $targets.GetEnumerator()) { Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value $hash = (Digest-Hash "$saveTo\$($t.Name)") Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash) -} \ No newline at end of file +}