Skip to content

Commit

Permalink
Use addams path
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Jun 24, 2024
1 parent 966b63a commit 0643bcd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/DeployUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -384,19 +384,19 @@ function SignScubaGearModule {
# the hashes of the actual files in order to validate their authenticity.
# Signing tool says it was successful, but the test says it was not.
Write-Host ">> Testing the catalog"
# There's no -Path parameter.
$TestResult = Test-FileCatalog -CatalogFilePath $CatalogFilePath -Path $ArrayOfFilePaths[0]
# $TestResult = Test-FileCatalog -CatalogFilePath $CatalogFilePath -Path $ModulePath -Detailed
Write-Host "Test result is $TestResult"
if ($TestResult -eq 'Valid') {
$AddamsModulePath = "C:\Users\RUNNER~1\AppData\Local\Temp\ScubaGear\PowerShell\ScubaGear"
$TestResult = Test-FileCatalog -CatalogFilePath $CatalogFilePath -Path $AddamsModulePath -Detailed
$TestResultType = $TestResult.GetType().FullName
Write-Host ">> Type of test result is $TestResultType"
Write-Host ">> Test result is $TestResult"
if ('Valid' -eq $TestResult) {
Write-Host ">> Signing the module was successful."
return True
}
else {
Write-Host ">> Signing the module was NOT successful."
return False
}
return False
}

function CreateArrayOfFilePaths {
Expand Down

0 comments on commit 0643bcd

Please sign in to comment.