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