Skip to content

Commit

Permalink
Fix #2 staging directory is created silently if not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Sep 24, 2021
1 parent 47582f1 commit 23089ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installUbuntuLTS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Param (
[Parameter(Mandatory=$True)][ValidateNotNull()][string]$installAllSoftware
)

# create staging directory if it does not exists
if (-Not (Test-Path -Path .\staging)) { $dir = mkdir .\staging }

curl.exe -L -o .\staging\ubuntuLTS.appx https://aka.ms/wslubuntu2004

Move-Item .\staging\ubuntuLTS.appx .\staging\$wslName.zip
Expand Down
3 changes: 3 additions & 0 deletions installWSL2.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# create staging directory if it does not exists
if (-Not (Test-Path -Path .\staging)) { $dir = mkdir .\staging }

curl.exe -L -o .\staging\wsl_update_x64.msi https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

.\staging\wsl_update_x64.msi /quiet
Expand Down

0 comments on commit 23089ed

Please sign in to comment.