From 7204b396d71441b9fccffaf529dca9c05138016f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Aug 2015 12:09:32 +0100 Subject: [PATCH] Peers temporary file --- src/freedombone-meshweb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-meshweb b/src/freedombone-meshweb index 42e53cf1..167adb08 100755 --- a/src/freedombone-meshweb +++ b/src/freedombone-meshweb @@ -6,6 +6,8 @@ # the freedombone-client script installed SERVER_INSTALLATION="no" +PEERS_FILE=/tmp/meshwebstart + ZERONET_REPO='https://github.com/bashrc/ZeroNet' ZERONET_DIR=~/zeronet ZERONET_URL=http://127.0.0.1:43110 @@ -59,6 +61,8 @@ while IFS='' read -r line || [[ -n "$line" ]]; do ctr=$((ctr + 1)) done < "$PEERS_FILE" +rm $PEERS_FILE + if [ ${ctr} -lt "1" ]; then echo 'No peers were found' exit 0