Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIPhy
wgetENAHTS
Commits
a4be770c
Commit
a4be770c
authored
Nov 18, 2021
by
Alexis CRISCUOLO
⚫
Browse files
3.1
parent
04d9f1b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
wgetENAHTS.sh
View file @
a4be770c
...
...
@@ -33,7 +33,10 @@
# = VERSIONS = #
# ============ #
# #
VERSION
=
3.0.211103acjg
#
VERSION
=
3.1.211118acjg
#
# + fixed bug when downloading into an output directory #
# #
# VERSION=3.0.211103acjg #
# + weh files completed with original md5 checksum(s) #
# + performs MD5-based instead of gzip-based file integrity assessment #
# #
...
...
@@ -207,7 +210,7 @@ then
[
!
-w
$OUTDIR
]
&&
echoxit
"no write permission (option -o):
$OUTDIR
"
;
else
if
mkdir
$OUTDIR
&>/dev/null
then
echo
"
creating
$OUTDIR
"
;
then
echo
-e
"
$(
chrono
)
\t\t
creating
$OUTDIR
\n
"
;
else
echoxit
"unable to create directory (option -o):
$OUTDIR
"
;
fi
fi
...
...
@@ -234,7 +237,7 @@ then
wt
=
0
;
while
[
$((
$wt
*
$wt
))
-lt
$NTHREADS
]
;
do
let
wt++
;
done
WAITIME
=
$wt
;
fi
[
$WAITIME
-lt
1
]
&&
WAITIME
=
1
;
[
$WAITIME
-lt
1
]
&&
WAITIME
=
1
;
##############################################################################################################
...
...
@@ -426,7 +429,7 @@ do
then
echo
-e
"[
$C
/
$N
]
\t\t
[31m[FAIL] incorrect MD5 checksum:
$(
sed
's/ .*//'
$OUTDIR
/
$FQGZ
.weh
)
\0
33[0m"
>
&2
;
else
echo
-e
"[
$C
/
$N
]
\t\t
$(
sed
's/ .*//'
$OUTDIR
/
$FQGZ
.weh
)
\t
$FQGZ
\t
[
$(
fb
$(
stat
-c
%s
$FQGZ
))
]"
;
echo
-e
"[
$C
/
$N
]
\t\t
$(
sed
's/ .*//'
$OUTDIR
/
$FQGZ
.weh
)
\t
$FQGZ
\t
[
$(
fb
$(
stat
-c
%s
$OUTDIR
/
$FQGZ
))
]"
;
fi
rm
-f
$OUTDIR
/
$FQGZ
.weh
;
done
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment