1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

cht.sh: xsel uses -bi (instead of -i) now (fixes #78)

This commit is contained in:
Igor Chubin
2018-08-19 09:31:41 +00:00
parent 8e89907c28
commit 6c447dc1ef
+2 -2
View File
@@ -301,7 +301,7 @@ EOF
else
curl -s "${CHTSH_URL}"/"$(get_query_options "$query"?T)" > "$TMP1"
if [ "$is_macos" != yes ]; then
xsel -i < "$TMP1"
xsel -bi < "$TMP1"
else
cat "$TMP1" | pbcopy
fi
@@ -320,7 +320,7 @@ EOF
else
curl -s "${CHTSH_URL}"/"$(get_query_options "$query"?TQ)" > "$TMP1"
if [ "$is_macos" != yes ]; then
xsel -i < "$TMP1"
xsel -bi < "$TMP1"
else
cat "$TMP1" | pbcopy
fi