comparison moefetch.sh @ 189:04841244beae

debug. (currently I've got no vbox)
author edhoprima@gmail.com <edhoprima@gmail.com>
date Sun, 28 Jun 2009 14:00:28 +0000
parents 9bf4eabbf0a9
children 1061a214a1f1
comparison
equal deleted inserted replaced
188:9bf4eabbf0a9 189:04841244beae
154 echo "Cleaning up repository folder..." 154 echo "Cleaning up repository folder..."
155 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`"
156 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"
157 for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/*" 157 for TRASH in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/*"
158 do 158 do
159 echo "$TRASH"
159 ISTRASH= 160 ISTRASH=
160 if [ -d "${TRASH}" ]; then 161 if [ -d "${TRASH}" ]; then
161 ISTRASH=1 162 ISTRASH=1
162 else 163 else
163 [ "`echo \"${FILE}\" | sed -e 's/.*\/\([\^\/]*\)/\1/g;s/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$`" ] && ISTRASH=1 164 [ "`echo \"${FILE}\" | sed -e 's/.*\/\([\^\/]*\)/\1/g;s/\([0-9a-f]\{32\}.*\)//g' | grep -v ^$`" ] && ISTRASH=1