mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 12:56:28 -04:00
Fix quotes being copied when clearing Termux clipboard
Former-commit-id: 028b6bdcf891aa017f1d21b6b083591322695b69 Former-commit-id: 9ef4a8e58fc44068efdfab43b6f33e4de76d8efe
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ elif argv[2] == 'mac':
|
||||
elif argv[2] == 'termux':
|
||||
hash_paste.update(run('termux-clipboard-get', stdout=PIPE).stdout.strip())
|
||||
if argv[1] == hash_paste.hexdigest():
|
||||
run(("termux-clipboard-set", "''"))
|
||||
run(("termux-clipboard-set", ''))
|
||||
|
||||
elif argv[2] == 'x11':
|
||||
hash_paste.update(run(('xclip', '-o', '-sel', 'c'), stdout=PIPE).stdout.strip())
|
||||
|
||||
Reference in New Issue
Block a user