File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 88# Deps: qrencode/zbar, curl, xclip, pbcopy (MacOS)
99# ----------------------------------------------------|
1010
11- version=' 2.3.4 '
11+ version=' 2.3.5 '
1212
1313logo="
1414██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗
@@ -66,7 +66,7 @@ case $(command -v xclip &>/dev/null && echo "xclip" || echo "pbcopy") in
6666xclip)
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 ;;
You can’t perform that action at this time.
0 commit comments