fix copypasta
This commit is contained in:
parent
2eb84883cd
commit
c19b0ce18a
@ -5,10 +5,10 @@ set -eu
|
|||||||
|
|
||||||
case "${OSTYPE:-}" in
|
case "${OSTYPE:-}" in
|
||||||
"linux-gnu"*)
|
"linux-gnu"*)
|
||||||
if [ -n "${WAYLAND_DISPLAY}" ]; then
|
if [ -n "${WAYLAND_DISPLAY:-}" ]; then
|
||||||
wl-copy --trim-newline
|
wl-copy --trim-newline
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -n "${DISPLAY}" ]; then
|
elif [ -n "${DISPLAY:-}" ]; then
|
||||||
xclip -selection clipboard -in
|
xclip -selection clipboard -in
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
@ -5,10 +5,10 @@ set -eu
|
|||||||
|
|
||||||
case "${OSTYPE:-}" in
|
case "${OSTYPE:-}" in
|
||||||
"linux-gnu"*)
|
"linux-gnu"*)
|
||||||
if [ -n "${WAYLAND_DISPLAY}" ]; then
|
if [ -n "${WAYLAND_DISPLAY:-}" ]; then
|
||||||
wl-paste --no-newline
|
wl-paste --no-newline
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -n "${DISPLAY}" ]; then
|
elif [ -n "${DISPLAY:-}" ]; then
|
||||||
xclip -selection clipboard -out
|
xclip -selection clipboard -out
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user