diff --git a/url.shortme.sh b/url.shortme.sh index ecd6818..da30115 100755 --- a/url.shortme.sh +++ b/url.shortme.sh @@ -47,7 +47,7 @@ if [ "${flag_inline}" = "true" ]; then fi # Try to get URL from clipboard if [ "${flag_clipboard}" = "true" ]; then - url_to_short=$(xclip -out) + url_to_short=$(xclip -out -selection clipboard) fi [ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG − Get URL : URL to be shortened : ${url_to_short}"