Răsfoiți Sursa

Updated trap messages

Daniel Gibbs 10 ani în urmă
părinte
comite
fedd6394e6
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      functions/core_dl.sh

+ 4 - 2
functions/core_dl.sh

@@ -73,11 +73,13 @@ fi
 # 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 "downloading ${filename}: CANCELED"
+	echo -ne "downloading ${filename}: "
+	fn_printcanceledeol
 	fn_scriptlog "downloading ${filename}: CANCELED"
 	fn_scriptlog "downloading ${filename}: CANCELED"
 	sleep 1
 	sleep 1
-	fn_printinfomation "downloading ${filename}: REMOVED"
 	rm -f "${filedir}/${filename}" | tee -a "${scriptlog}"
 	rm -f "${filedir}/${filename}" | tee -a "${scriptlog}"
+	echo -ne "downloading ${filename}: "
+	fn_printremovedeol
 	fn_scriptlog "downloading ${filename}: REMOVED"
 	fn_scriptlog "downloading ${filename}: REMOVED"
 	exit
 	exit
 }
 }