Only output length if using it

Closes https://git.autonomic.zone/coop-cloud/abra/issues/67.
This commit is contained in:
2020-12-31 18:16:01 +01:00
parent ce0e0e893c
commit 406b9e374e
2 changed files with 7 additions and 1 deletions

7
abra
View File

@ -459,7 +459,12 @@ parse_secret() {
abra__version_="$(echo "$SECRET" | sed -n 's/.*\(v[0-9]\).*/\1/p')"
echo "Generating $abra__secret_, version: $abra__version_, length: $abra__length_"
if [[ "$SECRET" == *"length"* ]]; then
echo "Generating $abra__secret_, version: $abra__version_, length: $abra__length_"
else
echo "Generating $abra__secret_, version: $abra__version_"
fi
sub_app_secret_generate
}