mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-20 08:58:18 +02:00
Updated install-powershell.ps1
This commit is contained in:
parent
f8b3301c02
commit
6a02ebf821
@ -63,9 +63,13 @@ $IsWinEnv = !$IsLinuxEnv -and !$IsMacOSEnv
|
|||||||
if (-not $Destination) {
|
if (-not $Destination) {
|
||||||
if ($IsWinEnv) {
|
if ($IsWinEnv) {
|
||||||
$Destination = "$env:LOCALAPPDATA\Microsoft\powershell"
|
$Destination = "$env:LOCALAPPDATA\Microsoft\powershell"
|
||||||
|
} else {
|
||||||
|
if (Test-Path "/opt/PowerShell" -pathType container) {
|
||||||
|
$Destination = "/opt/PowerShell"
|
||||||
} else {
|
} else {
|
||||||
$Destination = "~/.powershell"
|
$Destination = "~/.powershell"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($Daily) {
|
if ($Daily) {
|
||||||
$Destination = "${Destination}-daily"
|
$Destination = "${Destination}-daily"
|
||||||
|
Loading…
Reference in New Issue
Block a user