Daniel Gibbs 10 лет назад
Родитель
Сommit
a9e3345fe7
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      functions/core_dl.sh

+ 3 - 3
functions/core_dl.sh

@@ -38,7 +38,7 @@ fn_dl_extract(){
 :
 :
 }
 }
 
 
-# trap to remove file download if canceled before completed
+# Trap to remove file download if canceled before completed
 fn_fetch_trap() {
 fn_fetch_trap() {
 	echo ""
 	echo ""
 	fn_printinfomationnl "Cancelling download"
 	fn_printinfomationnl "Cancelling download"
@@ -74,7 +74,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 	# If curl exists download file
 	# If curl exists download file
 	if [ "$(basename ${curlcmd})" == "curl" ]; then
 	if [ "$(basename ${curlcmd})" == "curl" ]; then
 		# trap to remove part downloaded files
 		# trap to remove part downloaded files
-		trap fn_fetch_trap EXIT
+		trap fn_fetch_trap INT
 
 
 		# if larger file shows progress bar
 		# if larger file shows progress bar
 		if [[ $filename == *"tar"* ]]; then
 		if [[ $filename == *"tar"* ]]; then
@@ -91,7 +91,7 @@ if [ ! -f "${filedir}/${filename}" ]; then
 			fn_printokeol
 			fn_printokeol
 		fi
 		fi
 		# remove trap
 		# remove trap
-		trap - SIGINT SIGQUIT SIGTSTP	
+		trap - INT	
 	else
 	else
 		fn_printfaileol
 		fn_printfaileol
 		echo "Curl is not installed!"
 		echo "Curl is not installed!"