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}"