summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Powell <powell@progress.com>2022-10-28 12:04:08 -0400
committerThomas Powell <powell@progress.com>2022-10-28 12:04:08 -0400
commitbbe7acbfff4c0a0a7241c9b1c902e9a65c708467 (patch)
treec7cd48e5b6d31cf781db15f895d720a3adf6c4bb
parent899b277199dd739ff37cab59ae86483861757aab (diff)
downloadchef-bbe7acbfff4c0a0a7241c9b1c902e9a65c708467.tar.gz
file existence check
Signed-off-by: Thomas Powell <powell@progress.com>
-rw-r--r--habitat/plan.ps12
1 files changed, 2 insertions, 0 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 329efe74da..47a6149113 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -50,6 +50,8 @@ function Invoke-Download() {
Write-BuildLine "git_path = $git_path"
Write-BuildLine "pkg_filename = $pkg_filename"
Write-BuildLine "PLAN_CONTEXT = $PLAN_CONTEXT"
+ $file_exists=Test-Path $HAB_CACHE_SRC_PATH/$pkg_filename
+ Write-BuildLine "pkg file exists = $file_exists"
Push-Location (Resolve-Path "$PLAN_CONTEXT/../").Path
Write-BuildLine " __ hab cache src path before git "
Write-BuildLine "HAB_CACHE_SRC_PATH = $HAB_CACHE_SRC_PATH"