-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: increase minor version, update logo
- Loading branch information
1 parent
136b598
commit 69e63e2
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -35,7 +36,7 @@ op_upload='file sent' | |
|
||
case "$1" in | ||
'' | -h | --help) | ||
echo "$usage" | ||
echo "$logo $usage" | ||
exit | ||
;; | ||
-v | --version) | ||
|
@@ -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 |