From e74040c58f5a1a5b149a21d93081692e1bd13d27 Mon Sep 17 00:00:00 2001 From: Ryan Bolger Date: Sun, 23 Jun 2024 17:25:11 -0700 Subject: [PATCH] fixed instdev.ps1 for local deploy on Linux --- instdev.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/instdev.ps1 b/instdev.ps1 index 03912abd..d7f60e0c 100644 --- a/instdev.ps1 +++ b/instdev.ps1 @@ -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