From cb09d8bb1132557f814359a7f7a7d67f385a5d42 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 22 Oct 2024 14:42:56 +0100 Subject: [PATCH] Fix install.ps1 parans --- install.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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" } }