From ff203d9dfe46aee21080cd2171a44d00fc826b10 Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 19 Mar 2020 18:50:37 +0100 Subject: [PATCH] Fix bootstrap --- bootstrap_astroport.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bootstrap_astroport.sh b/bootstrap_astroport.sh index e4196cf..7163931 100755 --- a/bootstrap_astroport.sh +++ b/bootstrap_astroport.sh @@ -2,15 +2,14 @@ # Check if this script is not execute inside astroport folder [[ $(basename "$PWD") == "astroport" ]] && echo "DO NOT EXECUTE THIS SCRIPT INSIDE ASTROPORT FOLDER!" && exit 1 - -[[ -d astroport ]] && rm -rf astroport && echo "astroport folder as been deleted." +[[ -d astroport ]] && rm -rf astroport && echo "astroport folder has been deleted." giturl="http://192.168.9.19:3000" #giturl="https://git.p2p.legal" git clone $giturl/axiom-team/astroport.git cd astroport -[[ $giturl =~ "192" ]] && sed -i "s/https:\/\/git.p2p.legal/$giturl/g" .gitmodules +[[ $giturl =~ "192" ]] && sed -i 's/https:\/\/git.p2p.legal/http:\/\/192.168.9.19:3000/g' .gitmodules && echo "Infra p2p.legal detected, switch remotes submodules" git submodule update --init --recursive git submodule foreach git pull origin master