fix(pwsh): use module qualified cmdlet for expand

This commit is contained in:
Jan De Dobbeleer 2022-02-13 13:42:10 +01:00 committed by Jan De Dobbeleer
parent a0d4fc6cba
commit 4a713b2a23

View file

@ -89,7 +89,7 @@ function Sync-PoshThemes {
$themesUrl = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/themes.zip"
Invoke-WebRequest -OutFile $tmp $themesUrl
$destination = $env:POSH_THEMES_PATH
$tmp | Expand-Archive -DestinationPath $destination -Force
$tmp | Microsoft.PowerShell.Archive\Expand-Archive -DestinationPath $destination -Force
$tmp | Remove-Item
}