diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 19e3cce..4edd470 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -18,10 +18,19 @@ echo ' # !!! KEEP CREDENTIALS IN ~/.zen/secret.astroport.key ######################################################################## ' + # git & astroport code in ~/.zen -[[ ! -d ~/.zen ]] && mkdir -p ~/.zen && cd ~/.zen || cd ~/.zen -[[ !$(which git) ]] && sudo apt install git -y -[[ ! -d ~/.zen/astroport ]] && cd ~/.zen && git clone https://git.p2p.legal/axiom-team/astroport.git && cd astroport || exit 1 +[[ ! -d ~/.zen/astroport ]] && mkdir -p ~/.zen/astroport + +[[ ! $(which git) ]] && sudo apt install git -y + +if [[ -f ~/.zen/astroport/install.sh ]]; then + cd ~/.zen/astroport && git pull +else + cd ~/.zen + git clone https://git.p2p.legal/axiom-team/astroport.git +fi + cd ~/.zen/astroport # INSTALL Silkaj, CLI for Duniter