Skip to content

Commit 6c447dc

Browse files
committed
cht.sh: xsel uses -bi (instead of -i) now (fixes chubin#78)
1 parent 8e89907 commit 6c447dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/cht.sh.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ EOF
301301
else
302302
curl -s "${CHTSH_URL}"/"$(get_query_options "$query"?T)" > "$TMP1"
303303
if [ "$is_macos" != yes ]; then
304-
xsel -i < "$TMP1"
304+
xsel -bi < "$TMP1"
305305
else
306306
cat "$TMP1" | pbcopy
307307
fi
@@ -320,7 +320,7 @@ EOF
320320
else
321321
curl -s "${CHTSH_URL}"/"$(get_query_options "$query"?TQ)" > "$TMP1"
322322
if [ "$is_macos" != yes ]; then
323-
xsel -i < "$TMP1"
323+
xsel -bi < "$TMP1"
324324
else
325325
cat "$TMP1" | pbcopy
326326
fi

0 commit comments

Comments
 (0)