diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-04-24 17:22:06 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-04-24 17:22:06 +0800 |
| commit | 57c1fca2687ae34b92364da8ea9fa1837d900374 (patch) | |
| tree | 1233e0ad81f4ad3ef7e7e4cc5f6a539c97523d07 /dev_tools/scripts/http-page-preview.ps1 | |
| parent | 0eb378d380dac5a4755fd458fa5afb590aed7cd7 (diff) | |
Restore starting directory after PowerShell script execution
Diffstat (limited to 'dev_tools/scripts/http-page-preview.ps1')
| -rw-r--r-- | dev_tools/scripts/http-page-preview.ps1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dev_tools/scripts/http-page-preview.ps1 b/dev_tools/scripts/http-page-preview.ps1 index 4df4d8a..79ed77a 100644 --- a/dev_tools/scripts/http-page-preview.ps1 +++ b/dev_tools/scripts/http-page-preview.ps1 @@ -1,2 +1,4 @@ +$starting_dir = Get-Location Set-Location "docs" python -m http.server 3000 +Set-Location $starting_dir |
