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