Skip to content

Commit

Permalink
clarify which expand-archive function to use
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 committed Jul 28, 2023
1 parent f6ad7da commit d595991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install-atomicredteam.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Install-AtomicRedTeam {

write-verbose "Extracting ART to $InstallPath"
$zipDest = Join-Path "$DownloadPath" "tmp"
expand-archive -LiteralPath $path -DestinationPath "$zipDest" -Force:$Force
Microsoft.PowerShell.Archive\Expand-Archive -LiteralPath $path -DestinationPath "$zipDest" -Force:$Force
$iartFolderUnzipped = Join-Path $zipDest "invoke-atomicredteam-$Branch"
Move-Item $iartFolderUnzipped $InstallPathwIart
Remove-Item $zipDest -Recurse -Force
Expand Down
2 changes: 1 addition & 1 deletion install-atomicsfolder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Install-AtomicsFolder {

write-verbose "Extracting ART to $InstallPath"
$zipDest = Join-Path "$DownloadPath" "tmp"
expand-archive -LiteralPath $path -DestinationPath "$zipDest" -Force:$Force
Microsoft.PowerShell.Archive\Expand-Archive -LiteralPath $path -DestinationPath "$zipDest" -Force:$Force
$atomicsFolderUnzipped = Join-Path (Join-Path $zipDest "atomic-red-team-$Branch") "atomics"
Move-Item $atomicsFolderUnzipped $InstallPath
Remove-Item $zipDest -Recurse -Force
Expand Down

0 comments on commit d595991

Please sign in to comment.