Browse Source

fixed progress bar showing for some .sh files

Daniel Gibbs 10 years ago
parent
commit
d3f7be4919
1 changed files with 1 additions and 2 deletions
  1. 1 2
      functions/core_dl.sh

+ 1 - 2
functions/core_dl.sh

@@ -95,9 +95,8 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	if [ "$(basename ${curlcmd})" == "curl" ]; then
 		# trap to remove part downloaded files
 		trap fn_fetch_trap INT
-
 		# if larger file shows progress bar
-		if [[ $filename == *"tar"* ]]; then
+		if [ ${filename##*.} == "bz2" ]; then
 			echo -ne "downloading ${filename}..."
 			sleep 1
 			curlcmd=$(${curlcmd} --progress-bar --fail -o "${filedir}/${filename}" "${fileurl}")