# HG changeset patch # User edhoprima@gmail.com # Date 1246278544 0 # Node ID b9b90671616ac7126dbb4c4a6585127617ccb27c # Parent 735012343a674a934f50fc331763b018ce9dc01a ls replacement fail diff -r 735012343a67 -r b9b90671616a moefetch.sh --- a/moefetch.sh Mon Jun 29 12:27:58 2009 +0000 +++ b/moefetch.sh Mon Jun 29 12:29:04 2009 +0000 @@ -224,7 +224,7 @@ # THE FILES #ls "../${TARGET_DIR}" | grep -vf "${TARGET_DIR}-error" > "${TARGET_DIR}-ok" # - find "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | comm -1 -3 "${TEMP_PREFIX}-error" - > "${TEMP_PREFIX}-ok" + find "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | sed -e "${SED_GET_FILENAME}" | sort | comm -1 -3 "${TEMP_PREFIX}-error" - > "${TEMP_PREFIX}-ok" cat "${TEMP_PREFIX}-list" | grep -vf "${TEMP_PREFIX}-ok" > "${TEMP_PREFIX}-newlist" echo "$(echo $(wc -l < "${TEMP_PREFIX}-newlist")) file(s) to be downloaded"