From d55dc58c877c69b70623135cf9b83e77a782521d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 11 Mar 2020 16:38:05 +0100 Subject: [PATCH] Shorten the URL --- url.shortme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/url.shortme.sh b/url.shortme.sh index 66acd5c..8d40ba5 100755 --- a/url.shortme.sh +++ b/url.shortme.sh @@ -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