changeset 178:3f5ee8b2791f

error when restructuring
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 20:41:40 +0000
parents 4d7de9c3b98c
children c132eb3ca841
files moefetch.sh
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/moefetch.sh	Fri Jun 05 20:37:26 2009 +0000
+++ b/moefetch.sh	Fri Jun 05 20:41:40 2009 +0000
@@ -172,10 +172,8 @@
 			printf "."
 		done
 		echo
-		
-		# back to target dir
-		cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}"
-
+		TOTAL_ERROR=`echo \`wc -l < "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error"\``
+		echo "${TOTAL_ERROR} file(s) error"
 		echo "Removing error files"
 		if [ "${TOTAL_ERROR}" -eq 0 ]; then
 			echo "No error file. 0 file removed"
@@ -187,8 +185,6 @@
 
 		# current dir: ${BASE_DIR}/temp
 		cd ${BASE_DIR}/temp
-		TOTAL_ERROR=`echo \`wc -l < "${SITE_DIR}-${TARGET_DIR}-error"\``
-		echo "${TOTAL_ERROR} file(s) error"
 
 		echo "Generating list of new files..."
 		# THE FILES