Mercurial > ec-dotfiles
comparison moefetch.sh @ 171:ba4ea5d19d2b
wat
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 19:55:53 +0000 |
parents | 0d385f77bb24 |
children | 30de37b6fe47 |
comparison
equal
deleted
inserted
replaced
170:0d385f77bb24 | 171:ba4ea5d19d2b |
---|---|
143 | 143 |
144 # current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR} | 144 # current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR} |
145 cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | 145 cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" |
146 for TRASH in `ls * | sed -e 's/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$` | 146 for TRASH in `ls * | sed -e 's/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$` |
147 do | 147 do |
148 mv -f "${TRASH}" "${BASE_DIR}/trash" || Err_Fatal "Error deleting files" | 148 mv -f ${TRASH} ${BASE_DIR}/trash || Err_Fatal "Error deleting files" |
149 echo "Moved ${TRASH} to ${BASE_DIR}/trash" | 149 echo "Moved ${TRASH} to ${BASE_DIR}/trash" |
150 done | 150 done |
151 printf "" > "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error" | 151 printf "" > "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-error" |
152 for FILE in * | 152 for FILE in * |
153 do | 153 do |