Shorten the URL
This commit is contained in:
parent
a9b1c423a4
commit
d55dc58c87
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue