Skip to content

Commit 93badbb

Browse files
author
Nhoya
committed
fixed variable error
1 parent af896f2 commit 93badbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

z0r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ readonly YELLOW="\033[00;33m"
2323
readonly BOLD="\033[01m"
2424
readonly FINE="\033[0m"
2525

26-
ver='v1.7.3'
26+
ver='v1.7.4'
2727
regex='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*\.[A-Za-z0-9\+&@%#/=~_|():?]+'
2828
is_z0r='http://z0r.it/[^ \n]'
2929
url=(http://$1)
@@ -87,7 +87,7 @@ stats(){
8787
mss(){
8888
for i in ${@:2}; do
8989
mass=$(curl -s -L "http://z0r.it/yourls-api.php?signature=$apikey&action=shorturl&title=uploaded_with_z0r_script&format=simply&url=$(echo $i| sed 's/?/%3F/')"|awk -F '/' '{print$NF}')
90-
if wget --spider "$i" 2>/dev/null || curl -s --head $1 |head -n 1 |grep -q "405"; then
90+
if wget --spider "$i" 2>/dev/null || curl -s --head $i |head -n 1 |grep -q "405"; then
9191
if [ -n "$mass" ] ; then
9292
if curl $mode -L "http://z0r.it/yourls-api.php?signature=$apikey&action=shorturl&title=uploaded_with_z0r_script&format=simply&url=$(echo $i| sed 's/?/%3F/')" |grep -q "Errore 406"; then
9393
echo -e $RED"Error 406 - URL not valid(try to use https instead of http)"$FINE

0 commit comments

Comments
 (0)