Merge pull request #64 from monking/clipboard-without-newline

Avoid adding trailing newline to copied text
This commit is contained in:
Fredrik Fornwall 2019-05-29 23:27:53 +02:00 committed by GitHub
commit 56bf789bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,6 @@ CMD="/data/data/com.termux/files/usr/libexec/termux-api Clipboard -e api_version
if [ $# = 0 ]; then
$CMD
else
echo $@ | $CMD
echo -n "$@" | $CMD
fi