Skip to content

Commit

Permalink
cd into the script location on Windows
Browse files Browse the repository at this point in the history
Fixes #108
  • Loading branch information
mrrfv authored Mar 9, 2024
1 parent 0f98057 commit 9307c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backup-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Write-Output "Warning: WSL 2 is required. WSL will be updated to fix potential i
Write-Output "For more information, see here: https://github.com/microsoft/wslg#install-instructions-existing-wsl-install"
Write-Output ""
pause
# Corrects the cwd if it's different than the script directory
Set-Location -Path $PSScriptRoot
Write-Output "Updating WSL..."
wsl --update
wsl --shutdown
Expand Down

0 comments on commit 9307c2d

Please sign in to comment.