From 273b4d1eca1a46f56027d4191aad47f70020f036 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 4 Feb 2017 09:19:05 +0100 Subject: [PATCH] fix wrong conidition --- rofi-pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rofi-pass b/rofi-pass index a941381..c0d72df 100755 --- a/rofi-pass +++ b/rofi-pass @@ -465,7 +465,7 @@ manageEntry () { group=$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") if [[ $group == "" ]]; then exit - else [[ ${group} == "${original_group}" ]]; then + else new_name="$(listgpg | rofi -dmenu -format 'f' -mesg "Copying to same Group. Please enter a name for the new entry" -p "> ")" fi PASSWORD_STORE_DIR="${root}" pass cp "$selected_password" "${group}/${new_name}"