11 lines
193 B
Plaintext
Raw Normal View History

2021-03-13 18:34:45 +03:00
#!/bin/sh
if [ "$1" = "-e" ]; then
curl https://unshorten.me/s/"$2"
elif [ "$1" = "-s" ]; then
curl https://tinyurl.com/api-create.php?url="$2"
else
echo "Wrong arguments"
return 1
fi