From 614070c2383d07143729461683d664b32330b6c8 Mon Sep 17 00:00:00 2001 From: Ryan Bolger Date: Sun, 23 Jun 2024 22:35:43 -0700 Subject: [PATCH] fixed instdev.ps1 for PS Core on Win --- instdev.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instdev.ps1 b/instdev.ps1 index d7f60e0c..8890154d 100644 --- a/instdev.ps1 +++ b/instdev.ps1 @@ -1,8 +1,10 @@ #Requires -Version 5.1 # set the user module path based on edition and platform -if ($IsWindows -or $PSVersionTable.PSEdition -eq 'Desktop') { +if ($PSVersionTable.PSEdition -eq 'Desktop') { $installpath = Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'WindowsPowerShell\Modules' +} elseif ($IsWindows) { + $installpath = Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'PowerShell\Modules' } else { $installpath = Join-Path $env:HOME '.local/share/powershell/Modules' }