* Fix debug run for mac.
@ -3,9 +3,15 @@
# list of process name to be killed
targetProcess=( "harmony" "bootnode" "soldier" "commander" "profiler" )
NAME="$(uname -s)"
for pname in "${targetProcess[@]}"
do
sudo pkill -9 -e "^(${pname})$"
if [ $NAME == "Darwin" ]; then
pkill -9 "^(${pname})$"
else
pkill -9 -e "^(${pname})$"
fi
done
rm -rf db-127.0.0.1-*