fix typo in variable
This commit is contained in:
parent
c9730d5b8a
commit
0654a3d00b
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ EOF
|
||||||
|
|
||||||
check_token(){
|
check_token(){
|
||||||
|
|
||||||
|
[ -n "${P11M:+x}" ] && export PKCS11_MODULE=${P11M}
|
||||||
# it's the same as "token" in functions.sh
|
# it's the same as "token" in functions.sh
|
||||||
# defined here also, to work also in environments, where functions.sh couldn't be sourced
|
# defined here also, to work also in environments, where functions.sh couldn't be sourced
|
||||||
[ -z "${PKCS11_MODULE:+x}" ] && { PKCS11_MODULE=$P11M; export PKCS11_MODULE; }
|
[ -z "${PKCS11_MODULE:+x}" ] && { PKCS11_MODULE=$P11M; export PKCS11_MODULE; }
|
||||||
|
@ -58,7 +59,7 @@ check_token(){
|
||||||
logtrace "tmppubkey: $tmppubkey"
|
logtrace "tmppubkey: $tmppubkey"
|
||||||
loginfo "$(ssh-add -L > $tmppubkey)"
|
loginfo "$(ssh-add -L > $tmppubkey)"
|
||||||
# Check if public-keys in tmppubkey are working. They are not working, if you removed and add back hardware-token.
|
# Check if public-keys in tmppubkey are working. They are not working, if you removed and add back hardware-token.
|
||||||
loginfo "$(ssh-add -T ${tmppubkey}|| { ssh-add -e $PKCS11_MODUlE; ssh-add -s $PKCS11_MODUlE; } )"
|
loginfo "$(ssh-add -T ${tmppubkey}|| { ssh-add -e $PKCS11_MODULE; ssh-add -s $PKCS11_MODULE; } )"
|
||||||
logdebug "$(rm "${tmppubkey}")"
|
logdebug "$(rm "${tmppubkey}")"
|
||||||
logdebug "$(ssh-add -l )"
|
logdebug "$(ssh-add -l )"
|
||||||
[ $DISPLAY_ORIG ] && logtrace "reset DISPLAY=$DISPLAY_ORIG"
|
[ $DISPLAY_ORIG ] && logtrace "reset DISPLAY=$DISPLAY_ORIG"
|
||||||
|
|
Loading…
Reference in a new issue