From a4be770c7ef2cb3505bdbcd135d67f387eb0ed93 Mon Sep 17 00:00:00 2001 From: criscuol <alexis.criscuolo@pasteur.fr> Date: Thu, 18 Nov 2021 18:41:52 +0100 Subject: [PATCH] 3.1 --- wgetENAHTS.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wgetENAHTS.sh b/wgetENAHTS.sh index 73fa6ea..87f0c32 100755 --- a/wgetENAHTS.sh +++ b/wgetENAHTS.sh @@ -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\tcreating $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)\033[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 -- GitLab