Fix install.ps1 parans

This commit is contained in:
Kenneth Benzie 2024-10-22 14:42:56 +01:00
parent 5abb4c4268
commit cb09d8bb11

View File

@ -11,9 +11,8 @@ $layouts = (
foreach ($layout in $layouts) { foreach ($layout in $layouts) {
$source = "$env:USERPROFILE\Documents\WindowsPowerShell\layouts\$layout" $source = "$env:USERPROFILE\Documents\WindowsPowerShell\layouts\$layout"
$dest = "$env:LOCALAPPDATA\layouts\$layout" $dest = "$env:LOCALAPPDATA\layouts\$layout"
if (!(Test-Path -PathType Leaf $dest) { if (!(Test-Path -PathType Leaf $dest)) {
New-Item -ItemType SymbolicLink -Path "$dest" -Target "$source" New-Item -ItemType SymbolicLink -Path "$dest" -Target "$source"
Write-Output "changed: created symlink $dest" Write-Output "changed: created symlink $dest"
} }
}
} }