changeset 218:aeca29670e26

broken!
author edhoprima@gmail.com <edhoprima@gmail.com>
date Thu, 02 Jul 2009 20:28:21 +0000
parents 77cd21d714f6
children c4568fed66ba
files moefetch.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/moefetch.sh	Thu Jul 02 20:25:27 2009 +0000
+++ b/moefetch.sh	Thu Jul 02 20:28:21 2009 +0000
@@ -250,7 +250,7 @@
 		if test ! -n "${has_err_md5}" && test ! -n "${has_err_filename}"; then
 			echo "All files OK"
 		else
-			if test ! -n "${has_err_md5}"; then
+			if test -n "${has_err_md5}"; then
 				echo "${files_error}"
 				echo "$(echo $(wc -l < "${TEMP_PREFIX}-error")) file(s) removed"
 			fi
@@ -260,7 +260,7 @@
 
 		printf "Generating list of new files... "
 		Progress_Init
-		cat "${TEMP_PREFIX}-list" > "${TEMP_PREFIX}-templist"
+		cp -f "${TEMP_PREFIX}-list" "${TEMP_PREFIX}-templist"
 		while read -r is_ok; do
 			grep -v "${is_ok}" "${TEMP_PREFIX}-templist" > "${TEMP_PREFIX}-newlist"
 			cp -f "${TEMP_PREFIX}-newlist" "${TEMP_PREFIX}-templist" || Err_Impossible