diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 3b31fb2..c846412 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -189,17 +189,19 @@ echo ' | | | | | (/_ | | | (_) | | | (_ diceware passphrase generator...' -# INSTALL diceware files -cd $MY_PATH -curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/diceware.sh -chmod +x diceware.sh -curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/diceware-wordlist.txt -## TODO REPLACE WITH ipfs links +# INSTALL diceware files ## TODO REPLACE WITH ipfs links + +[[ ! -f ~/.ssb_astroport/diceware.sh ]] \ +&& curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/diceware.sh -o ~/.ssb_astroport/diceware.sh \ +&& chmod +x ~/.ssb_astroport/diceware.sh + +[[ ! -f ~/.ssb_astroport/diceware-wordlist.txt ]] \ +&& curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/diceware-wordlist.txt # LOGIN (=SALT) -salt="$($MY_PATH/diceware.sh 6)" +salt="$(~/.ssb_astroport/diceware.sh 6)" # PASS (=PEPPER) -pepper="$($MY_PATH/diceware.sh 4)" +pepper="$(~/.ssb_astroport/diceware.sh 4)" fi echo "........."