mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 18:19:32 +02:00
Updated install-powershell.ps1
This commit is contained in:
parent
f8b3301c02
commit
6a02ebf821
@ -64,7 +64,11 @@ if (-not $Destination) {
|
||||
if ($IsWinEnv) {
|
||||
$Destination = "$env:LOCALAPPDATA\Microsoft\powershell"
|
||||
} else {
|
||||
$Destination = "~/.powershell"
|
||||
if (Test-Path "/opt/PowerShell" -pathType container) {
|
||||
$Destination = "/opt/PowerShell"
|
||||
} else {
|
||||
$Destination = "~/.powershell"
|
||||
}
|
||||
}
|
||||
|
||||
if ($Daily) {
|
||||
|
Loading…
Reference in New Issue
Block a user