summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-30 11:28:32 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-10-30 11:28:32 +0600
commitdc6b0c96b93456e7edd2e7944d179f0592652c01 (patch)
tree34866a5488990cfed6a1e0e0e13796c95db0e204
parenta79b08fa8c5997f4ef27ecb5a95c8c6c80034f6d (diff)
downloadchef-dc6b0c96b93456e7edd2e7944d179f0592652c01.tar.gz
Adding more debugging and setting an ErrorAction on the git archive line
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--habitat/plan.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 17fa653b26..53f7874310 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -1,4 +1,4 @@
-$ErrorActionPreference = 'Continue'
+$ErrorActionPreference = 'Stop'
$pkg_name="chef-infra-client"
$pkg_origin="chef"
$pkg_version=(Get-Content $PLAN_CONTEXT/../VERSION)
@@ -62,7 +62,7 @@ function Invoke-Download() {
# # [System.Diagnostics.Process]::Start("c:\\Program Files\\Git\\cmd\\git.exe archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD")
# Write-Output "Now archiving the repo"
# [System.Diagnostics.Process]::Start("$full_git_path archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose") -ErrorAction Start-
- Invoke-Expression -Command "$full_git_path archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" -ErrorAction Stop
+ Invoke-Expression -Command "$($full_git_path) archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose"
# Write-Output "Zipping the Repo is finished"
# Start-Sleep -Seconds 30
# Write-Output " *** Finished Creating the Archive *** `n"