diff --git a/install.ps1 b/install.ps1 index d45aa11..ebc08bb 100644 --- a/install.ps1 +++ b/install.ps1 @@ -11,9 +11,8 @@ $layouts = ( foreach ($layout in $layouts) { $source = "$env:USERPROFILE\Documents\WindowsPowerShell\layouts\$layout" $dest = "$env:LOCALAPPDATA\layouts\$layout" - if (!(Test-Path -PathType Leaf $dest) { - New-Item -ItemType SymbolicLink -Path "$dest" -Target "$source" - Write-Output "changed: created symlink $dest" - } + if (!(Test-Path -PathType Leaf $dest)) { + New-Item -ItemType SymbolicLink -Path "$dest" -Target "$source" + Write-Output "changed: created symlink $dest" } }