diff moefetch.sh @ 190:1061a214a1f1

thanks to folks at #bash!
author edhoprima@gmail.com <edhoprima@gmail.com>
date Sun, 28 Jun 2009 14:07:53 +0000
parents 04841244beae
children a4ceb952b05a
line wrap: on
line diff
--- a/moefetch.sh	Sun Jun 28 14:00:28 2009 +0000
+++ b/moefetch.sh	Sun Jun 28 14:07:53 2009 +0000
@@ -154,9 +154,8 @@
 	echo "Cleaning up repository folder..."
 	TRASH_DIR="${SITE_DIR}-${TARGET_DIR}-`date -u +%Y%m%d-%H.%M`"
 	mkdir -p "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Unable to create trash folder"
-	for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/*"
+	for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/"*
 	do
-		echo "$TRASH"
 		ISTRASH=
 		if [ -d "${TRASH}" ]; then
 			ISTRASH=1