From 5dfdaf06666fccaebb8a9fd6743bce75ceb1ddc6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Feb 2019 00:08:29 +0200 Subject: [PATCH] cleanup --- pash | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/pash b/pash index 51e96ce..89fc8c4 100755 --- a/pash +++ b/pash @@ -19,7 +19,6 @@ pw_add() { [[ $password ]] || die "Failed to generate a password." - # Handle category in store name. [[ $1 == */* ]] && { mkdir -p "${1%/*}" || die "Couldn't create category '${1%/*}'." } @@ -53,11 +52,6 @@ pw_list() { } pw_gen() { - # Grab '$length' number of lines from '/dev/urandom'. - # '$length' also controls the generated password length. - # This is a simple way to ensure that pash grabs enough - # data from '/dev/urandom' to meet the length requirement. - # example: 50 lines from /dev/urandom == 50 char password mapfile -tn "${length:=50}" rand