mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
fix: read user input from /dev/tty when piped via curl
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ ask_clear_trading_data() {
|
||||
echo ""
|
||||
echo -e "${BLUE}Type 'yes' to clear tables, press Enter or any other input to skip${NC}"
|
||||
echo -n "Input: "
|
||||
read -r confirm
|
||||
read -r confirm < /dev/tty
|
||||
|
||||
if [ "$confirm" == "yes" ]; then
|
||||
CLEAR_TRADING_DATA="yes"
|
||||
|
||||
Reference in New Issue
Block a user