Forráskód Böngészése

adjusting display

Daniel Gibbs 10 éve
szülő
commit
d5d4bee45c
1 módosított fájl, 4 hozzáadás és 5 törlés
  1. 4 5
      functions/core_dl.sh

+ 4 - 5
functions/core_dl.sh

@@ -41,14 +41,13 @@ dl_url=$3
 dl_md5=$4
 
 if [ ! -f "${dl_filepath}/${dl_filename}" ]||[ -n "${retry_dl}" ]; then
-	echo -ne "downloading ${dl_filename}...\c"
-
-	dl=$(curl --fail -o "${dl_filepath}/${dl_filename}" "${dl_url}" 2>&1)
+	echo -e "downloading ${dl_filename}..."
+	dl=$(curl --progress-bar --fail -o "${dl_filepath}/${dl_filename}" "${dl_url}")
 	exitcode=$?
+	echo -ne "downloading ${dl_filename}...\c"
 	if [ ${exitcode} -ne 0 ]; then
 		fn_printfaileol
-		echo "${dl}"
-		echo -e "${url}\n"
+		echo -e "${dl_url}\n"
 		exit ${exitcode}
 	else
 		fn_printokeol