summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-07 23:09:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-07 23:09:56 +0200
commit2fdaa4bdc797129b41d07a129e7d7b56157ba9ab (patch)
tree398f9256ddcb676e0c8f8558f42cba1b69da5de0 /fb.in
parent47781856dfc45cc535cbd1c18a280453d9e85939 (diff)
Replace -n option to echo with | tr -d "\n"
The echo builtin on darwin doesn't support any options and will output them. References: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/echo.1.html Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index bd15407..46d3541 100644
--- a/fb.in
+++ b/fb.in
@@ -300,7 +300,7 @@ else
fi
if [ "$CLIPBOARD" != "" ]; then
- type $CLIPBOARD_CMD >/dev/null 2>&1 && echo -n $CLIPBOARD | nohup $CLIPBOARD_CMD >/dev/null 2>&1
+ type $CLIPBOARD_CMD >/dev/null 2>&1 && echo $CLIPBOARD | tr -d "\n" | nohup $CLIPBOARD_CMD >/dev/null 2>&1
fi
exit $EXITCODE