# HG changeset patch # User edhoprima@gmail.com # Date 1246566501 0 # Node ID aeca29670e267afff0552dec36c8597d55ccd169 # Parent 77cd21d714f64335b35263d3b6f6631d5cdc6776 broken! diff -r 77cd21d714f6 -r aeca29670e26 moefetch.sh --- 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