aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-02 16:00:41 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-02 16:00:41 +0800
commit587b8461881b08fc130f72fa840e32cb56cb5404 (patch)
treed2e02fd2883bd2a669d1e23998bf420812793bcb /install.sh
parent59ef82553f35ee7da0e0048971419801318fe4e2 (diff)
chore: redirect stdin to /dev/tty for user prompts
Diffstat (limited to 'install.sh')
-rwxr-xr-x[-rw-r--r--]install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 38cf024..b78d938 100644..100755
--- a/install.sh
+++ b/install.sh
@@ -23,14 +23,14 @@ echo "Done!"
echo ""
echo "Remove all example scripts? [Y/n]"
-read -r response
+read -r response < /dev/tty
case "$response" in
[nN]|[nN][oO])
echo "Skipped."
;;
*)
echo "Removing example scripts..."
- rm -f .run/src/bin/*
+ rm -rf .run/src/bin/
echo "Done!"
;;
esac