From 6422a6782dbdcee824f1fab5040a2858617d348b Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 19 Mar 2020 19:17:55 +0100 Subject: [PATCH] Fix bootstrap --- bootstrap_astroport.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap_astroport.sh b/bootstrap_astroport.sh index d0a61ca..eab294e 100755 --- a/bootstrap_astroport.sh +++ b/bootstrap_astroport.sh @@ -4,8 +4,8 @@ [[ $(basename "$PWD") == "astroport" ]] && echo "DO NOT EXECUTE THIS SCRIPT INSIDE ASTROPORT FOLDER!" && exit 1 [[ -d astroport ]] && rm -rf astroport && echo "astroport folder has been deleted." -isp2plegal=$(nc -zv -w 1 192.168.9.19 3000) -if [[ $isp2plegal =~ "(?) open" ]]; then +isp2plegal=$(nc -zv -w 1 192.168.9.19 3000 2<&1) +if [[ "$isp2plegal" =~ "(?) open" ]]; then isp2plegalbool=true giturl="http://192.168.9.19:3000" else