changeset 172:30de37b6fe47

lol wut
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:59:51 +0000
parents ba4ea5d19d2b
children 2b7c8c1ecdfe
files moefetch.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/moefetch.sh	Fri Jun 05 19:55:53 2009 +0000
+++ b/moefetch.sh	Fri Jun 05 19:59:51 2009 +0000
@@ -143,9 +143,9 @@
 		
 		# current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}
 		cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}"
-		for TRASH in `ls * | sed -e 's/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$`
+		for TRASH in `ls | sed -e 's/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$`
 		do
-			mv -f ${TRASH} ${BASE_DIR}/trash || Err_Fatal "Error deleting files"
+			mv -f "${TRASH}" "${BASE_DIR}/trash" || Err_Fatal "Error deleting files"
 			echo "Moved ${TRASH} to ${BASE_DIR}/trash"
 		done
 		printf "" > "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error"