Fix error case when not logged in
This commit is contained in:
parent
5a705f4f91
commit
f02104ecda
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue