diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-02 16:00:41 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-02 16:00:41 +0800 |
| commit | 587b8461881b08fc130f72fa840e32cb56cb5404 (patch) | |
| tree | d2e02fd2883bd2a669d1e23998bf420812793bcb | |
| parent | 59ef82553f35ee7da0e0048971419801318fe4e2 (diff) | |
chore: redirect stdin to /dev/tty for user prompts
| -rwxr-xr-x[-rw-r--r--] | install.sh | 4 |
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 |
