Skip to content

Commit

Permalink
chore: increase minor version, update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscomh committed Oct 14, 2024
1 parent 136b598 commit 69e63e2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions yourl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
#----------------------------------------------------|
# Matheus Martins [email protected]
# https://github.com/mateuscomh/yoURL
# 30/03/2021 GPL3
# 30/03/2023 GPL3
# URL shortner and upload files from bash to 0x0.st.
#----------------------------------------------------|

version='2.1.0'

usage="yourl.sh - URL shortner and upload files from bash to 0x0.st
version='2.1.2'

logo="
██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗
╚██╗ ██╔╝██╔═══██╗██║ ██║██╔══██╗██║
╚████╔╝ ██║ ██║██║ ██║██████╔╝██║
╚██╔╝ ██║ ██║██║ ██║██╔══██╗██║
██║ ╚██████╔╝╚██████╔╝██║ ██║███████╗
╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
"

usage="yourl.sh - URL shortner and upload files from bash to 0x0.st
Usage:
To short links:
yourl.sh 'URL' URL shortner by http://tinyurl.com
Expand All @@ -35,7 +36,7 @@ op_upload='file sent'

case "$1" in
'' | -h | --help)
echo "$usage"
echo "$logo $usage"
exit
;;
-v | --version)
Expand All @@ -58,9 +59,9 @@ fi
[[ -z "$REPLY" || "$REPLY" = 'Error' ]] && exit 1

# Print url shorted on bash
#echo "$REPLY"
echo "$logo URL created:"
command -v qrencode &>/dev/null && qrencode -m 2 -t ANSIUTF8 "$REPLY"
echo "$REPLY"

# Send a shorted url to clippboard Linux/MacOS
command -v xclip &>/dev/null && echo -n "$REPLY" | xclip -sel copy || echo -n "$REPLY" | pbcopy 2>/dev/null
command -v xclip &>/dev/null && echo -n "$logo $REPLY" | xclip -sel copy || echo -n "$REPLY" | pbcopy 2>/dev/null

0 comments on commit 69e63e2

Please sign in to comment.