Skip to content

Commit 18af7e5

Browse files
committed
fix: condition in linux without display
1 parent 1a263c7 commit 18af7e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
██║ ╚██████╔╝╚██████╔╝██║ ██║███████╗
77
╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
88
```
9-
[![Release](https://img.shields.io/badge/release-2.3.4-brightgreen)](https://github.com/mateuscomh/yoURL/releases)
9+
[![Release](https://img.shields.io/badge/release-2.3.5-brightgreen)](https://github.com/mateuscomh/yoURL/releases)
1010
[![Build Status](https://github.com/mateuscomh/yoURL/actions/workflows/shell-linter.yml/badge.svg)](https://github.com/mateuscomh/yoURL/actions/workflows/shell-linter.yml)
1111

1212
# URL shortner and upload files direct from terminal

yourl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Deps: qrencode/zbar, curl, xclip, pbcopy (MacOS)
99
#----------------------------------------------------|
1010

11-
version='2.3.4'
11+
version='2.3.5'
1212

1313
logo="
1414
██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗
@@ -66,7 +66,7 @@ case $(command -v xclip &>/dev/null && echo "xclip" || echo "pbcopy") in
6666
xclip)
6767
if grep -iq Microsoft /proc/version; then
6868
printf "%s" "$REPLY" | clip.exe
69-
elif command -v xclip >/dev/null; then
69+
elif command -v xclip >/dev/null && [ -n "$DISPLAY" ]; then
7070
echo -n "$REPLY" | xclip -sel copy
7171
fi
7272
;;

0 commit comments

Comments
 (0)