Fixed typos

This commit is contained in:
Markus Fleschutz 2025-06-06 10:22:45 +02:00
parent 330b13c72b
commit b17b3885b5
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
param([string]$path = "README.md") param([string]$path = "README.md")
try { 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" $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.md"
Copy-Item $pathToTemplate "$path" Copy-Item $pathToTemplate "$path"

View File

@ -17,7 +17,7 @@
param([string]$path = "bot.ps1") param([string]$path = "bot.ps1")
try { 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" $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.ps1"
Copy-Item $pathToTemplate "$path" Copy-Item $pathToTemplate "$path"

View File

@ -17,7 +17,7 @@
param([string]$path = "README.txt") param([string]$path = "README.txt")
try { 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" $pathToTemplate = Resolve-Path "$PSScriptRoot/../data/templates/New.txt"
Copy-Item $pathToTemplate "$path" Copy-Item $pathToTemplate "$path"