Mercurial > ec-dotfiles
comparison moefetch.sh @ 218:aeca29670e26
broken!
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Thu, 02 Jul 2009 20:28:21 +0000 |
parents | 77cd21d714f6 |
children | c4568fed66ba |
comparison
equal
deleted
inserted
replaced
217:77cd21d714f6 | 218:aeca29670e26 |
---|---|
248 done | 248 done |
249 Progress_Done | 249 Progress_Done |
250 if test ! -n "${has_err_md5}" && test ! -n "${has_err_filename}"; then | 250 if test ! -n "${has_err_md5}" && test ! -n "${has_err_filename}"; then |
251 echo "All files OK" | 251 echo "All files OK" |
252 else | 252 else |
253 if test ! -n "${has_err_md5}"; then | 253 if test -n "${has_err_md5}"; then |
254 echo "${files_error}" | 254 echo "${files_error}" |
255 echo "$(echo $(wc -l < "${TEMP_PREFIX}-error")) file(s) removed" | 255 echo "$(echo $(wc -l < "${TEMP_PREFIX}-error")) file(s) removed" |
256 fi | 256 fi |
257 test -n "${has_err_filename}" && echo "${files_notdanbooru}" | 257 test -n "${has_err_filename}" && echo "${files_notdanbooru}" |
258 fi | 258 fi |
259 echo "$(echo $(wc -l < "${TEMP_PREFIX}-ok")) file(s) available locally" | 259 echo "$(echo $(wc -l < "${TEMP_PREFIX}-ok")) file(s) available locally" |
260 | 260 |
261 printf "Generating list of new files... " | 261 printf "Generating list of new files... " |
262 Progress_Init | 262 Progress_Init |
263 cat "${TEMP_PREFIX}-list" > "${TEMP_PREFIX}-templist" | 263 cp -f "${TEMP_PREFIX}-list" "${TEMP_PREFIX}-templist" |
264 while read -r is_ok; do | 264 while read -r is_ok; do |
265 grep -v "${is_ok}" "${TEMP_PREFIX}-templist" > "${TEMP_PREFIX}-newlist" | 265 grep -v "${is_ok}" "${TEMP_PREFIX}-templist" > "${TEMP_PREFIX}-newlist" |
266 cp -f "${TEMP_PREFIX}-newlist" "${TEMP_PREFIX}-templist" || Err_Impossible | 266 cp -f "${TEMP_PREFIX}-newlist" "${TEMP_PREFIX}-templist" || Err_Impossible |
267 Progress_Anim | 267 Progress_Anim |
268 done < "${TEMP_PREFIX}-ok" | 268 done < "${TEMP_PREFIX}-ok" |