! -f only

This commit is contained in:
qo-op 2020-05-05 18:32:19 +02:00
parent 24173df36f
commit ec67e9f098
1 changed files with 10 additions and 8 deletions

View File

@ -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 "........."