comparison moefetch.sh @ 219:c4568fed66ba

cutfix
author edhoprima@gmail.com <edhoprima@gmail.com>
date Thu, 02 Jul 2009 20:29:06 +0000
parents aeca29670e26
children fe4d74801b28
comparison
equal deleted inserted replaced
218:aeca29670e26 219:c4568fed66ba
231 if test -n "$(Is_NotMD5 "$(basename "${file}")")" || test -d "${file}"; then 231 if test -n "$(Is_NotMD5 "$(basename "${file}")")" || test -d "${file}"; then
232 files_notdanbooru="${files_notdanbooru} 232 files_notdanbooru="${files_notdanbooru}
233 $(basename "${file}")" 233 $(basename "${file}")"
234 has_err_filename=1 234 has_err_filename=1
235 else 235 else
236 if test "$(${MD5} "${file}" | cut -d ' ' -f1 -)" = "$(basename "${file}" | cut -d '.' -f1)"; then 236 if test "$(${MD5} "${file}" | cut -d ' ' -f 1)" = "$(basename "${file}" | cut -d '.' -f 1)"; then
237 echo "$(basename "${file}")" >> "${TEMP_PREFIX}-ok" 237 echo "$(basename "${file}")" >> "${TEMP_PREFIX}-ok"
238 else 238 else
239 rm "${file}" || Err_Fatal "Error removing ${file}" 239 rm "${file}" || Err_Fatal "Error removing ${file}"
240 echo "$(basename "${file}")" >> "${TEMP_PREFIX}-error" 240 echo "$(basename "${file}")" >> "${TEMP_PREFIX}-error"
241 files_error="${files_error} 241 files_error="${files_error}