1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

chg: Updated the messaged

This commit is contained in:
Sayantan Santra 2023-10-26 11:57:07 -05:00
parent 2c61b926fb
commit 7cc78461f3
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -8,10 +8,10 @@
name="$1"
if [ "$3" == "add" ]; then
message="The torrent '$name' has been added."
message="Added: $name"
elif [ "$3" == "fin" ]; then
size="$(echo $2 | numfmt --to=iec --format %.2f)B"
message="The torrent '$name' ($size) has finished downloading."
message="Finished: [$size] $name"
else
exit
fi