From a635207cee3bb5df2ed08f0303df861f711e83bd Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 15 Jun 2023 19:25:59 -0400 Subject: [PATCH] sshyp-mfa - Fixed clipboard typos --- sshyp-mfa/lib/sshyp-mfa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sshyp-mfa/lib/sshyp-mfa.py b/sshyp-mfa/lib/sshyp-mfa.py index bf76314..b7a6fa3 100755 --- a/sshyp-mfa/lib/sshyp-mfa.py +++ b/sshyp-mfa/lib/sshyp-mfa.py @@ -78,13 +78,13 @@ if __name__ == '__main__': else: _mfa_key = totp(mfa_data[1], mfa_data[2], mfa_data[3], mfa_data[4]) if 'WSL_DISTRO_NAME' in environ: # WSL clipboard detection - run(('powershell.exe', '-c', 'Set-Clipboard', _mfa_key)) + run(('powershell.exe', '-c', 'Set-Clipboard', _mfa_key)) elif 'WAYLAND_DISPLAY' in environ: # Wayland clipboard detection run(('wl-copy', _mfa_key)) elif uname()[0] == 'Haiku': # Haiku clipboard detection run(('clipboard', '-c', _mfa_key)) elif uname()[0] == 'Darwin': # MacOS clipboard detection - run(('pbcopy'), stdin=Popen(('printf', _mfa_key)), stdout=PIPE).stdout + run('pbcopy', stdin=Popen(('printf', _mfa_key), stdout=PIPE).stdout) elif isdir("/data/data/com.termux"): # Termux (Android) clipboard detection run(('termux-clipboard-set', _mfa_key)) else: # X11 clipboard detection