fix test empty variable
This commit is contained in:
parent
c0b72390c1
commit
4ad1733bf9
1 changed files with 3 additions and 2 deletions
|
@ -834,10 +834,11 @@ utoken () {
|
|||
token(){
|
||||
|
||||
#[ -z "${P11M+x}" ] && { P11M=/usr/lib64/p11-kit-proxy.so; export P11M; }
|
||||
[ -z "${P11M+x}" ] && { P11M=$PKCS11_MODULE; export P11M; }
|
||||
[ -z "${P11M:+x}" ] && { P11M=$PKCS11_MODULE; export P11M; }
|
||||
|
||||
tmppubkey="${XDG_RUNTIME_DIR}/token.pub"
|
||||
loginfo "$(ssh-keygen -D $PKCS11_MODULE >$tmppubkey)"
|
||||
loginfo "$(ssh-add -L > $tmppubkey)"
|
||||
|
||||
# Usage:
|
||||
# token <identity> will load token in agent. does nothing, if token is already loaded
|
||||
# token -r|-f|--reload-token <identity> will remove token from agent and add it again (if plugged off and plugged in again
|
||||
|
|
Loading…
Reference in a new issue