Merge pull request #2535 from AndyBoWu/pr_suppress_prompt

suppress prompt to the action to clean up old db and logs
pull/2546/head
Leo Chen 5 years ago committed by GitHub
commit 4d25de025c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      scripts/node.sh

@ -605,7 +605,9 @@ done
if [[ "${start_clean}" == "true" && "${network_type}" != "mainnet" ]]
then
msg "cleaning up old database/logs (-c)"
read -rp "Remove old database/logs? (Y/n) " yesno
# set a 2s timeout, and set its default return value to Y (true)
read -rp -t 2 "Remove old database/logs? (Y/n) " yesno
yesno=${yesno:-Y}
echo
if [[ "$yesno" == "y" || "$yesno" == "Y" ]]; then
unset -v backup_dir now

Loading…
Cancel
Save