diff --git a/packages/powershell/oh-my-posh.psd1 b/packages/powershell/oh-my-posh.psd1 index 032dbc83..b6449bf7 100644 --- a/packages/powershell/oh-my-posh.psd1 +++ b/packages/powershell/oh-my-posh.psd1 @@ -21,7 +21,7 @@ # Description of the functionality provided by this module Description = 'A prompt theme engine for any shell' # Minimum version of the Windows PowerShell engine required by this module - PowerShellVersion = '6.0' + PowerShellVersion = '5.0' # List of all files packaged with this module FileList = @() # Cmdlets to export from this module diff --git a/packages/powershell/oh-my-posh.psm1 b/packages/powershell/oh-my-posh.psm1 index a5beeffc..b15d591e 100644 --- a/packages/powershell/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh.psm1 @@ -80,7 +80,7 @@ function Sync-PoshThemes { ) Write-Host "Downloading oh-my-posh themes for $Version" - $tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } –PassThru + $tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } -PassThru $themesUrl = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/themes.zip" Invoke-WebRequest -OutFile $tmp $themesUrl $destination = $env:POSH_THEMES_PATH