From ba7b15009ebd1891544e088152b16c1e4329cf22 Mon Sep 17 00:00:00 2001 From: gorgone Date: Tue, 26 Feb 2019 00:24:26 +0100 Subject: [PATCH] add more update infos --- support/functions/_update | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/support/functions/_update b/support/functions/_update index 3b459ef..2a6cb8a 100644 --- a/support/functions/_update +++ b/support/functions/_update @@ -1,10 +1,16 @@ #!/bin/bash start_update(){ -echo -e " -> download $filename"; -echo -e " -> verify $filename"; -echo -e " -> extract $filename"; -echo -e " -> done!\n$re_" +clear;s3logo; +echo -e $w_l"$txt_loading\t-->\t $Y$filename"; +url="https://github.com/gorgone/s3_releases/archive/s3_rc5.1.tar.gz"; +cd "$dldir";echo -e $P; +wget -N --no-hsts --https-only --progress=dot "$url" 2>&1 |grep --line-buffered "%" |awk '{ printf "\033["'9'";"'41'"H\033[K > %-4s", $7;}'; +tput cup 8 40;echo -en $G"$txt_done "; +echo -en $w_l"\n $txt_check\t-->\t $Y$filename";echo -en $G"\t OK";sleep 1; +echo -en $w_l"\n $txt_extracting\t-->\t $Y$filename"; +echo -en $G" $txt_done\n\n$re_"; +sleep 3; } update(){