DEFAULT 2 WORDS SECRETS

This commit is contained in:
fred 2023-03-16 22:31:53 +01:00
parent 2ae501e061
commit 75dba89a1d
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ if [[ $MONTANT != "daemon" ]]; then
STYLE="$2"
DICE=$(cat $MY_PATH/DICE 2>/dev/null) ## HOW MANY WORDS SECRETS
[[ $DICE != ?(-)+([0-9]) ]] && DICE=4
[[ $DICE != ?(-)+([0-9]) ]] && DICE=2
echo "$DICE WORDS SECRETS (Define length in $MY_PATH/DICE)"
## CHECK IF STYLE IS EMAIL => astro IPFS G1BILLET
if [[ "${STYLE}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then