From 371e54bcc0bafa821e85961b320fc4666373a5f8 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 2 Nov 2022 21:21:45 +0100 Subject: [PATCH] stop republish inside old publish --- _12345.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_12345.sh b/_12345.sh index 3537072c..066c07ff 100755 --- a/_12345.sh +++ b/_12345.sh @@ -21,6 +21,8 @@ PORT=12345 ncrunning=$(ps auxf --sort=+utime | grep -w 'nc -l -p 12345' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) [[ $ncrunning ]] && echo "(≖‿‿≖) - API Server Already Running - (≖‿‿≖) " && exit 1 +rm -Rf ~/.zen/tmp/swarm/* + while true; do start=`date +%s` for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#") # remove comments