Skip to content

Commit

Permalink
fixed instdev.ps1 for local deploy on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbolger committed Jun 24, 2024
1 parent ef72515 commit e74040c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions instdev.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#Requires -Version 5.1

# set the user module path based on edition and platform
if ('PSEdition' -notin $PSVersionTable.Keys -or $PSVersionTable.PSEdition -eq 'Desktop') {
if ($IsWindows -or $PSVersionTable.PSEdition -eq 'Desktop') {
$installpath = Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'WindowsPowerShell\Modules'
} else {
if ($IsWindows) {
$installpath = Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'PowerShell\Modules'
} else {
$installpath = Join-Path ([Environment]::GetFolderPath('MyDocuments')) '.local/share/powershell/Modules'
}
$installpath = Join-Path $env:HOME '.local/share/powershell/Modules'
}

# deal with execution policy on Windows
Expand Down

0 comments on commit e74040c

Please sign in to comment.