aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-02 15:52:15 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-02 15:52:15 +0800
commit59ef82553f35ee7da0e0048971419801318fe4e2 (patch)
tree6a7d314e577121fbdda17b2e673a4a18e81f1990
parent0dc8ed12776c132cdd9d6f2c3a4a2ddfc82b751c (diff)
feat: prompt to remove example scripts after install
-rw-r--r--install.ps110
-rw-r--r--install.sh14
2 files changed, 24 insertions, 0 deletions
diff --git a/install.ps1 b/install.ps1
index 6de50d5..9dff1c5 100644
--- a/install.ps1
+++ b/install.ps1
@@ -18,3 +18,13 @@ Start-Sleep -Milliseconds 200
Remove-Item -Path $tempDir -Recurse -Force
Write-Host "Done!"
+
+Write-Host ""
+$response = Read-Host "Remove all example scripts? [Y/n]"
+if ($response -notmatch '^[nN]') {
+ Write-Host "Removing example scripts..."
+ Remove-Item -Path ".run/src/bin/*" -Force
+ Write-Host "Done!"
+} else {
+ Write-Host "Skipped."
+}
diff --git a/install.sh b/install.sh
index 07f7e5a..38cf024 100644
--- a/install.sh
+++ b/install.sh
@@ -20,3 +20,17 @@ echo "Cleaning up..."
rm -rf "$TEMP_DIR"
echo "Done!"
+
+echo ""
+echo "Remove all example scripts? [Y/n]"
+read -r response
+case "$response" in
+ [nN]|[nN][oO])
+ echo "Skipped."
+ ;;
+ *)
+ echo "Removing example scripts..."
+ rm -f .run/src/bin/*
+ echo "Done!"
+ ;;
+esac