Get URL from main clipboard

This commit is contained in:
Jeremy Gardais 2020-03-11 18:35:25 +01:00
parent f9d4d262e0
commit fcf9a26626
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ if [ "${flag_inline}" = "true" ]; then
fi fi
# Try to get URL from clipboard # Try to get URL from clipboard
if [ "${flag_clipboard}" = "true" ]; then if [ "${flag_clipboard}" = "true" ]; then
url_to_short=$(xclip -out) url_to_short=$(xclip -out -selection clipboard)
fi fi
[ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG Get URL: URL to be shortened: ${url_to_short}" [ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG Get URL: URL to be shortened: ${url_to_short}"