From 2fa72da97213128c206facc709a018598540ec61 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 22 Nov 2022 19:16:26 +0100 Subject: [PATCH] protection --- tools/TW_cache.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/TW_cache.sh b/tools/TW_cache.sh index 82ead5605..de5274c42 100755 --- a/tools/TW_cache.sh +++ b/tools/TW_cache.sh @@ -2,6 +2,8 @@ ASTRONAUTENS="$1" MOATS="$2" +[[ ! $ASTRONAUTENS || ! $MOATS ]] && echo "ASTRONAUTENS & MOATS needed" && exit 1 + start=$(date +%s) IPFSNODEID=$(ipfs id -f='\n') || ( echo "IPFSNODEID MISSING" && exit 1 ) TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3)