File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 ██║ ╚██████╔╝╚██████╔╝██║ ██║███████╗
77 ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
88 ```
9- [ ![ Release] ( https://img.shields.io/badge/release-2.3 .5-brightgreen )] ( https://github.com/mateuscomh/yoURL/releases )
9+ [ ![ Release] ( https://img.shields.io/badge/release-2.4 .5-brightgreen )] ( https://github.com/mateuscomh/yoURL/releases )
1010[ ![ Build Status] ( https://github.com/mateuscomh/yoURL/actions/workflows/shell-linter.yml/badge.svg )] ( https://github.com/mateuscomh/yoURL/actions/workflows/shell-linter.yml )
1111
1212# URL shortner and upload files direct from terminal
Original file line number Diff line number Diff line change 88# Deps: qrencode/zbar, curl, xclip, pbcopy (MacOS)
99# ----------------------------------------------------|
1010
11- version=' 2.3 .5'
11+ version=' 2.4 .5'
1212
1313logo="
1414██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗
4545
4646if [[ -f " $1 " ]]; then
4747 # If $1 is file
48- read -r <<< " $(curl -sF " file=@$1 " https://0x0.st | sed -e " s/< .* //" )"
48+ read -r <<< " $(curl -sF " file=@$1 " https://0x0.st | sed -e " s/< .* //" )" \
49+ || read -r <<< " $(curl -sF 'clbin=<-' https://clbin.com < " $1 " | grep -o 'hxxps://.*' | sed 's/hxxps/https/')"
50+ [[ -z " $REPLY " ]] && \
51+ read -r <<< " $(curl -sF 'clbin=<-' https://clbin.com < " $1 " | grep -o 'https://.*')"
52+
4953else
5054 # If $1 is a url
5155 read -r <<< " $(curl -s http://tinyurl.com/api-create.php?url=" $1 " )"
You can’t perform that action at this time.
0 commit comments