Skip to content

Commit

Permalink
fixed instdev.ps1 for PS Core on Win
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbolger committed Jun 24, 2024
1 parent f529a3f commit 614070c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion instdev.ps1
Original file line number Diff line number Diff line change
@@ -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'
}
Expand Down

0 comments on commit 614070c

Please sign in to comment.