From 3cd146ae91d6c718c9902b7714fecc29a7903b20 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 21 Apr 2019 14:30:34 -0400 Subject: [PATCH] pass fix? --- mw | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mw b/mw index ae02924..32e922a 100755 --- a/mw +++ b/mw @@ -168,9 +168,8 @@ EOF trysync && finalize } -getpass() { pass rm -f "mutt-wizard-$title" >/dev/null 2>&1 - while ! pass ls | grep -o "mutt-wizard-$title$" >/dev/null 2>&1;do - pass insert "mutt-wizard-$title"; done;} +getpass() { while : ; do pass rm -f "mutt-wizard-$title" >/dev/null 2>&1 + pass insert "mutt-wizard-$title" && break; done ;} formatShortcut() { \ while read -r data; do { echo "macro index,pager g$1 \"$data\" \"go to $2\" # autogenerated"