changeset 194:a8da49424468

proper way to empty file
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 10:54:33 +0000
parents ac6533a8fb51
children 652d9e268cee
files moefetch.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/moefetch.sh	Mon Jun 29 10:49:40 2009 +0000
+++ b/moefetch.sh	Mon Jun 29 10:54:33 2009 +0000
@@ -190,7 +190,7 @@
 		[ "${NOCLEAN}" ] || Cleanup_Repository
 		echo "Checking for errors..."
 		cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}"
-		printf "" > "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error"
+		> "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error"
 		for FILE in *
 		do
 			if [ "$(echo "${FILE}" | sed -e 's/\([0-9a-f]\{32\}\..*\)//g' | grep -v ^$)" ]; then