Skip to content

Commit 56bf789

Browse files
authored
Merge pull request #64 from monking/clipboard-without-newline
Avoid adding trailing newline to copied text
2 parents 58219fa + a7087a2 commit 56bf789

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/termux-clipboard-set

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ CMD="/data/data/com.termux/files/usr/libexec/termux-api Clipboard -e api_version
2121
if [ $# = 0 ]; then
2222
$CMD
2323
else
24-
echo $@ | $CMD
24+
echo -n "$@" | $CMD
2525
fi
2626

0 commit comments

Comments
 (0)