Fixed debug run for mac. (#4484)

* Fix debug run for mac.
pull/4491/merge
Konstantin 1 year ago committed by GitHub
parent fa00cd143d
commit 9f1576fa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      test/kill_node.sh

@ -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-*
Loading…
Cancel
Save