Shorten the URL

This commit is contained in:
Jeremy Gardais 2020-03-11 16:38:05 +01:00
parent a9b1c423a4
commit d55dc58c87
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@ debug="0"
flag_clipboard=1
flag_inline=1
null_url="https://null.101010.fr"
null_service_url="https://null.101010.fr"
## Colors [[[
c_redb='\033[1;31m'
@ -53,4 +53,7 @@ fi
[ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG: URL to be shortened: ${url_to_short}"
# ]]]
# shorten URL
result=$(curl -sF"shorten=${url_to_short}" "${null_service_url}")
exit 0