diff moefetch.sh @ 199:b9b90671616a

ls replacement fail
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 12:29:04 +0000
parents 735012343a67
children 8efa600ebfdb
line wrap: on
line diff
--- 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"