Fix error case when not logged in

This commit is contained in:
Daniel Lundin 2018-02-26 12:56:34 +01:00
parent 5a705f4f91
commit f02104ecda

View file

@ -6,8 +6,8 @@ if [[ "$SSH_ASKPASS" == $0 ]]; then
fi
if [[ -z "$1" ]]; then
lpass ls --color=never ssh | cut -d ' ' -f1 | fzf | xargs -n1 $0
exit 0
_key=$(lpass ls --color=never ssh | cut -d ' ' -f1 | fzf -1 -0)
exec $0 $_key
fi
_tmp=$(mktemp -d)