comparison moefetch.sh @ 188:9bf4eabbf0a9

whut
author edhoprima@gmail.com <edhoprima@gmail.com>
date Sun, 28 Jun 2009 13:59:19 +0000
parents efd957294c8c
children 04841244beae
comparison
equal deleted inserted replaced
187:efd957294c8c 188:9bf4eabbf0a9
149 Cleanup_Repository() { 149 Cleanup_Repository() {
150 150
151 # THE FILES 151 # THE FILES
152 152
153 # current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR} 153 # current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}
154 echo "Cleaning up repository folder..."
154 TRASH_DIR="${SITE_DIR}-${TARGET_DIR}-`date -u +%Y%m%d-%H.%M`" 155 TRASH_DIR="${SITE_DIR}-${TARGET_DIR}-`date -u +%Y%m%d-%H.%M`"
155 mkdir -p "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Unable to create trash folder" 156 mkdir -p "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Unable to create trash folder"
156 for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/*" 157 for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/*"
157 do 158 do
158 ISTRASH= 159 ISTRASH=