From a431c60c9ea6e09fa0b2b53fd1b93a59a4c70b28 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 28 Mar 2017 12:32:27 -0400 Subject: [PATCH] Remove unimportant lines --- addpass | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/addpass b/addpass index 1bdad29..1851b90 100755 --- a/addpass +++ b/addpass @@ -42,12 +42,7 @@ IFS="+"; fields="$@"; fieldsArray=($fields); -read -p "Enter password for entry \"${Name}\" > " -s pass - -cd "${root}" -group=$(echo -e "No Group\n---\n$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" | rofi -dmenu -p "Choose Group > ") - -echo -e "\n\nStoring file ${Name} in group ${group}" +pass="$(pwgen -sy 32 1)" printEntry () { echo -e "$pass\n---" @@ -58,10 +53,4 @@ printEntry () { done } -if [[ "$group" == "No Group" ]]; then - printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}" -elif [[ "$group" == "" ]]; then - exit -else - printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}" -fi +printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${Name}"