From 0bf06144d7e5d4f62561fabac37f13ccbf4db0a2 Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Wed, 25 Mar 2020 03:22:40 +0700 Subject: [PATCH] added mkdir instetad of md --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index f2a732afc..79956502e 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -70,7 +70,7 @@ $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658" $downloadPath = "C:\SQLInstall" $setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU" #Create directory for temporary files -md $downloadPath +mkdir $downloadPath Set-Location -Path $downloadPath $installerPath = Start-DownloadWithRetry -Url $installerUrl -DownloadPath $downloadPath -Name "SQL2019-SSEI-Expr.exe" Download-FullSQLPackage -InstallerPath $installerPath -DownloadPath $downloadPath @@ -78,4 +78,4 @@ Unpack-SQLInstaller -InstallPath "$setupPath.exe" $resultPath = Join-Path $setupPath "SETUP.exe" Start-Installer -InstallerPath $resultPath #Cleanup folder with installation packages. -Remove-Item $downloadPath -Recurse +Remove-Item $downloadPath -Recurse -Force