mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-20 03:37:56 +02:00
Fixed typos
This commit is contained in:
parent
330b13c72b
commit
b17b3885b5
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user