summaryrefslogtreecommitdiff
path: root/setup/windows/uninst.ps1
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-24 04:41:19 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-24 04:41:19 +0800
commit2b41209f2b76d4067867be466bdcfed478ff3f39 (patch)
tree7f232e5f468ceb4b40f0c1506a167c4de6236657 /setup/windows/uninst.ps1
parent4c77a05993d40c42ebe78c1d3a72f8049f360982 (diff)
Move setup scripts to scripts/setup directory
Diffstat (limited to 'setup/windows/uninst.ps1')
-rw-r--r--setup/windows/uninst.ps139
1 files changed, 0 insertions, 39 deletions
diff --git a/setup/windows/uninst.ps1 b/setup/windows/uninst.ps1
deleted file mode 100644
index d5c898d..0000000
--- a/setup/windows/uninst.ps1
+++ /dev/null
@@ -1,39 +0,0 @@
-$profileContent = Get-Content $PROFILE -ErrorAction SilentlyContinue
-if ($profileContent) {
- $startMarker = "# JustEnoughVCS - Begin #"
- $endMarker = "# JustEnoughVCS - End #"
- $newContent = @()
- $insideBlock = $false
- $foundStart = $false
-
- foreach ($line in $profileContent) {
- if ($line.Trim() -eq $startMarker) {
- $insideBlock = $true
- $foundStart = $true
- continue
- }
- if ($line.Trim() -eq $endMarker) {
- $insideBlock = $false
- continue
- }
- if (-not $insideBlock) {
- $newContent += $line
- }
- }
-
- if ($foundStart -and $insideBlock) {
- $newContent = @()
- $insideBlock = $false
- foreach ($line in $profileContent) {
- if ($line.Trim() -eq $startMarker) {
- $insideBlock = $true
- continue
- }
- if (-not $insideBlock) {
- $newContent += $line
- }
- }
- }
-
- $newContent | Set-Content $PROFILE
-}