Fix for already set SSH_ASKPASS env var
This commit is contained in:
parent
4908899986
commit
e186367d5d
|
@ -305,7 +305,7 @@ if __name__ == '__main__':
|
|||
logging.error('"%s" error: %s', error.cmd[0], error.stderr)
|
||||
logging.debug('Error running %s', error.cmd)
|
||||
|
||||
if os.environ.get('SSH_ASKPASS'):
|
||||
if os.environ.get('SSH_ASKPASS') and os.environ.get('SSH_ASKPASS') == os.path.realpath(__file__):
|
||||
print(os.environ.get('SSH_KEY_PASSPHRASE'))
|
||||
else:
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue