aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-02-04 09:11:04 +0100
committerRasmus Steinke <rasi@xssn.at>2017-02-04 09:11:04 +0100
commit48cc094d6f21618019bcf62d1208158c1698c9bd (patch)
tree8395b4edb473a7bce4988cb8e62e30c5861efee6
parent3fff93dcc12e8c57117191575fb6e52aa5ae2a4b (diff)
downloadrofi-pass-48cc094d6f21618019bcf62d1208158c1698c9bd.tar.gz
always ask for new name
-rwxr-xr-xrofi-pass4
1 files changed, 1 insertions, 3 deletions
diff --git a/rofi-pass b/rofi-pass
index c8e4837..a941381 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -465,10 +465,8 @@ 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
- elif [[ ${group} == "${original_group}" ]]; then
+ else [[ ${group} == "${original_group}" ]]; then
new_name="$(listgpg | rofi -dmenu -format 'f' -mesg "Copying to same Group. Please enter a name for the new entry" -p "> ")"
- else
- new_name="${selected_password2}"
fi
PASSWORD_STORE_DIR="${root}" pass cp "$selected_password" "${group}/${new_name}"
mainMenu