From 1fbe2f7c2d06ce240e4ade7f58b8a4e270a3a519 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Fri, 14 Oct 2022 22:28:50 +0330 Subject: [PATCH] use absolute path for default cmder root dir --- scripts/pack.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}