set PKCS11_MODULE in tmux only if itselt is defined
This commit is contained in:
parent
0d52aeba3b
commit
4969c361b8
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ function _pkcs11module_hook() {
|
||||||
|
|
||||||
loginfo "PKCS11_MODULE: $PKCS11_MODULE"
|
loginfo "PKCS11_MODULE: $PKCS11_MODULE"
|
||||||
|
|
||||||
if [ -n "${TMUX}" ]; then
|
if [ -n "${TMUX}" -a -n "${PKCS11_MODULE}" ]; then
|
||||||
logdebug "set PKCS11_MODULE also in tmux environment"
|
logdebug "set PKCS11_MODULE also in tmux environment"
|
||||||
tmux set-environment PKCS11_MODULE ${PKCS11_MODULE}
|
tmux set-environment PKCS11_MODULE ${PKCS11_MODULE}
|
||||||
tmux set-environment -g PKCS11_MODULE ${PKCS11_MODULE}
|
tmux set-environment -g PKCS11_MODULE ${PKCS11_MODULE}
|
||||||
|
|
Loading…
Reference in a new issue