From b17b3885b5f58e0b09689180d0c080456124d210 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 6 Jun 2025 10:22:45 +0200 Subject: [PATCH] Fixed typos --- scripts/new-markdown-file.ps1 | 2 +- scripts/new-powershell-script.ps1 | 2 +- scripts/new-text-file.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/new-markdown-file.ps1 b/scripts/new-markdown-file.ps1 index 65872a29..d034e9cd 100755 --- a/scripts/new-markdown-file.ps1 +++ b/scripts/new-markdown-file.ps1 @@ -17,7 +17,7 @@ param([string]$path = "README.md") try { - if (Test-Path "$path" -pathType leaf)) { throw "File '$path' is already existing" } + if (Test-Path "$path" -pathType leaf) { throw "File '$path' is already existing" } $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.md" Copy-Item $pathToTemplate "$path" diff --git a/scripts/new-powershell-script.ps1 b/scripts/new-powershell-script.ps1 index 658d4626..7425b284 100755 --- a/scripts/new-powershell-script.ps1 +++ b/scripts/new-powershell-script.ps1 @@ -17,7 +17,7 @@ param([string]$path = "bot.ps1") try { - if (Test-Path "$path" -pathType leaf)) { throw "File '$path' is already existing" } + if (Test-Path "$path" -pathType leaf) { throw "File '$path' is already existing" } $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.ps1" Copy-Item $pathToTemplate "$path" diff --git a/scripts/new-text-file.ps1 b/scripts/new-text-file.ps1 index 2d23e7cf..9f7b8843 100755 --- a/scripts/new-text-file.ps1 +++ b/scripts/new-text-file.ps1 @@ -17,7 +17,7 @@ param([string]$path = "README.txt") try { - if (Test-Path "$path" -pathType leaf)) { throw "File '$path' is already existing" } + if (Test-Path "$path" -pathType leaf) { throw "File '$path' is already existing" } $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.txt" Copy-Item $pathToTemplate "$path"