From ec0ace5e18cc994b49897ac0b51b6b281bbb92d0 Mon Sep 17 00:00:00 2001 From: Chris Galvan Date: Wed, 9 Dec 2020 13:59:02 -0600 Subject: [PATCH] feat: removing spaces from folder name in yamlcreate (#5066) --- Tools/YamlCreate.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/YamlCreate.ps1 b/Tools/YamlCreate.ps1 index cde9794c9..486e34428 100644 --- a/Tools/YamlCreate.ps1 +++ b/Tools/YamlCreate.ps1 @@ -76,6 +76,7 @@ while ([string]::IsNullOrWhiteSpace($Publisher) -or $Publisher.Length -ge 128) { while ([string]::IsNullOrWhiteSpace($AppName) -or $AppName.Length -ge 128) { $AppName = Read-Host -Prompt 'Enter the application name' | TrimString + $AppNameFolder = $AppName -replace '\s','' } while ([string]::IsNullOrWhiteSpace($version)) { @@ -245,7 +246,7 @@ if (-not [string]::IsNullOrWhiteSpace($SilentWithProgress)) { $ManifestsFolder = (Resolve-Path "$PSScriptRoot\..\manifests").Path $PublisherFolder = Join-Path $ManifestsFolder $Publisher -$AppFolder = Join-Path $PublisherFolder $AppName +$AppFolder = Join-Path $PublisherFolder $AppNameFolder New-Item -ItemType "Directory" -Force -Path $AppFolder | Out-Null $FileOldEncoding = Get-Content -Raw $ManifestName