diff --git a/rofi-pass b/rofi-pass
index 7fa711a..11450a6 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -86,11 +86,18 @@ ${line2}"
rofi_exit=$?
if [[ -n $selected_password ]]; then
- if [[ $selected_password != "[ Add Entry ]>" || $selected_password != "[ Manage Database ]>" ]]; then
+ if [[ $selected_password == "[ Add Entry ]>" ]]; then
+ :
+ elif [[ $selected_password == "[ Manage Database ]>" ]]; then
+ :
+ elif [[ $selected_password == "---" ]]; then
+ :
+ else
rm -f "$HOME/.config/rofi-pass/last_used"
echo "${root}: $selected_password" > "$HOME/.config/rofi-pass/last_used"
fi
fi
+
if [[ "${rofi_exit}" -eq 0 ]]; then
if [[ ${selected_password} == "[ Add Entry ]>" ]]; then
insertPass
@@ -212,17 +219,27 @@ showEntry () {
HELP="${type_entry}: Type Entry | ${copy_entry}: Copy Entry"
bla=$(echo -e "0 Return\n---\n$(PASSWORD_STORE_DIR="${root}" pass "$selected_password")" | _rofi -dmenu -mesg "${HELP}" -p "> ")
rofi_exit=$?
+ password_temp=$(PASSWORD_STORE_DIR="${root}" pass "$selected_password")
+ password=$(echo "${password_temp}" | head -1)
+ declare -A stuff
+
+ while read LINE; do
+ _id=$(echo -e "${LINE}" | awk -F ':[[:space:]]*' '{print $1}')
+ _val=$(echo -e "${LINE}" | awk '{sub(/:/,"")}{for (i=2; i