Mercurial > ec-dotfiles
changeset 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 |
files | moefetch.sh |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/moefetch.sh Fri Jun 05 15:20:36 2009 +0000 +++ b/moefetch.sh Fri Jun 05 19:09:54 2009 +0000 @@ -199,12 +199,13 @@ # start downloading the images Fetch_Images() { - if [ `echo \`wc -l < "${TARGET_DIR}-newlist"\`` -eq 0 ]; then + cd "${BASE_DIR}/temp" + if [ `echo \`wc -l < "${SITE_DIR}-${TARGET_DIR}-newlist"\`` -eq 0 ]; then echo "No new file" else echo "Starting wget" - cd "../${TARGET_DIR}" - wget -e continue=on -bi "../temp/${TARGET_DIR}-newlist" -o "../temp/${TARGET_DIR}.log" + cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" + wget -e continue=on -bi "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}-newlist" -o "${BASE_DIR}/temp/${SITE_DIR}-${TARGET_DIR}.log" fi }