Mercurial > ec-dotfiles
comparison moefetch.sh @ 172:30de37b6fe47
lol wut
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 19:59:51 +0000 |
parents | ba4ea5d19d2b |
children | 2b7c8c1ecdfe |
comparison
equal
deleted
inserted
replaced
171:ba4ea5d19d2b | 172:30de37b6fe47 |
---|---|
141 echo "Checking for errors..." | 141 echo "Checking for errors..." |
142 # THE FILES | 142 # THE FILES |
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 |