Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wgetENAHTS
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIPhy
wgetENAHTS
Commits
a4be770c
Commit
a4be770c
authored
3 years ago
by
Alexis CRISCUOLO
Browse files
Options
Downloads
Patches
Plain Diff
3.1
parent
04d9f1b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wgetENAHTS.sh
+7
-4
7 additions, 4 deletions
wgetENAHTS.sh
with
7 additions
and
4 deletions
wgetENAHTS.sh
+
7
−
4
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
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment