1
0
Fork 0

Add colours to puttmpninja

This commit is contained in:
tastytea 2022-04-14 02:56:11 +02:00
parent 4f3050e401
commit ef3027a5de
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ if [[ ${#o_help} -ne 0 || ! -v 1 ]]; then
fi
for file in ${@}; do
print -n '\e[0;94m'
local url=$(curl --progress-bar --form "files[]=@${file}" \
'https://tmp.ninja/upload.php?output=text')
print '\e[1;95m→\e[0m' ${url}
print '\e[1;95m→\e[0m' "\e[0;97m${url}\e[0m" \
"\e[3;90mexpires: $(date --date='now + 2 days')\e[0m"
done