FollieHiyuki-dotfiles/home/.local/bin/urlify

11 lines
189 B
Plaintext
Raw Permalink Normal View History

2021-03-13 10:34:45 -05:00
#!/bin/sh
if [ "$1" = "-e" ]; then
curl https://unshorten.me/s/"${2:--}"
2021-03-13 10:34:45 -05:00
elif [ "$1" = "-s" ]; then
curl -F"shorten=${2:--}" https://0x0.st
2021-03-13 10:34:45 -05:00
else
echo "Wrong arguments"
return 1
fi