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