mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit f7f587a5068697d1f13574aec869af0702595950
parent da4a3385422ea2fc67cfdfb43d568cccc3e3a181
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 16 Oct 2015 22:54:49 +0100

handle abort

Diffstat:
xpass | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/xpass b/xpass @@ -22,6 +22,11 @@ cd ~/.password-store # my-rofi is a dmenu wrapper RET=$(ls *.gpg | sed 's/\.gpg$//' | ~/bin/my-rofi) +if [ -z "$RET" ] +then + # user aborted + exit 0 +fi FILE=$(echo "$RET" | awk '{print $1}') USER=$(echo "$RET" | awk '{print $2}') if [ ! -f "${FILE}.gpg" ]