diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-05-07 23:09:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-05-07 23:09:56 +0200 |
commit | 2fdaa4bdc797129b41d07a129e7d7b56157ba9ab (patch) | |
tree | 398f9256ddcb676e0c8f8558f42cba1b69da5de0 /fb.in | |
parent | 47781856dfc45cc535cbd1c18a280453d9e85939 (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.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |