github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/clean.sh (about)

     1  #!/usr/bin/env bash
     2  # usage: clean [all]
     3  if [ $# -gt 1 ]; then
     4  	echo "usage: clean [all]"
     5  	exit 100
     6  fi
     7  
     8  function rmall() {
     9  	echo "rmall"
    10  	#rm -rf *.id *.key *.pub BP*.toml
    11  	rm -rf *.log
    12  }
    13  
    14  killall -9 aergosvr
    15  rm -rf data* genesis*
    16  #rm *.log
    17  
    18  # make empty args to string
    19  if [ "$1" = "all" ]; then
    20  	rmall
    21  fi
    22  
    23  
    24