Remove unimportant lines

This commit is contained in:
Austen Adler 2017-03-28 12:32:27 -04:00
parent 1672ad4c60
commit a431c60c9e

13
addpass
View File

@ -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