comparison moefetch.sh @ 160:68227a30d0b3

forgot to fix Fetch_Images to reflect new folder naming scheme
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:09:54 +0000
parents 75fe19903b74
children 52877e2849bb
comparison
equal deleted inserted replaced
159:75fe19903b74 160:68227a30d0b3
197 fi 197 fi
198 } 198 }
199 199
200 # start downloading the images 200 # start downloading the images
201 Fetch_Images() { 201 Fetch_Images() {
202 if [ `echo \`wc -l < "${TARGET_DIR}-newlist"\`` -eq 0 ]; then 202 cd "${BASE_DIR}/temp"
203 if [ `echo \`wc -l < "${SITE_DIR}-${TARGET_DIR}-newlist"\`` -eq 0 ]; then
203 echo "No new file" 204 echo "No new file"
204 else 205 else
205 echo "Starting wget" 206 echo "Starting wget"
206 cd "../${TARGET_DIR}" 207 cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}"
207 wget -e continue=on -bi "../temp/${TARGET_DIR}-newlist" -o "../temp/${TARGET_DIR}.log" 208 wget -e continue=on -bi "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-newlist" -o "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}.log"
208 fi 209 fi
209 } 210 }
210 211
211 # initialize base variables and initial command check 212 # initialize base variables and initial command check
212 Init(){ 213 Init(){