# HG changeset patch # User edhoprima@gmail.com # Date 1244230158 0 # Node ID 78ac6fd03e3abc6405b2b9b7953fee2b16c58b3a # Parent cc60e8cf77935fc928da2638f9b946e825cd9760 more fix diff -r cc60e8cf7793 -r 78ac6fd03e3a moefetch.sh --- a/moefetch.sh Fri Jun 05 19:24:27 2009 +0000 +++ b/moefetch.sh Fri Jun 05 19:29:18 2009 +0000 @@ -116,17 +116,17 @@ # verify required folders exist and writeable Check_Folders(){ [ -O "${BASE_DIR}" ] || Err_Fatal "You don't own ${BASE_DIR}. Please fix ${BASE_DIR}." - for FOLDER in temp trash deleted ${TARGET_DIR} + for FOLDER in temp trash deleted ${SITE_DIR}/${TARGET_DIR} do if [ ! -d "${BASE_DIR}/${FOLDER}" ]; then mkdir "${BASE_DIR}/${FOLDER}" || Err_Fatal "${FOLDER} folder creation failed" fi if [ ! -O "${BASE_DIR}/${FOLDER}" ]; then - echo "You don't own the ${BASE_DIR}/{$FOLDER}, applying globally writeable permission on it" + echo "You don't own the ${BASE_DIR}/${FOLDER}, applying globally writeable permission on it" chmod -R u=rwX,g=rwX,o=rwX "${BASE_DIR}/${FOLDER}" || Err_Fatal "Error changing ownership. This shouldn't happen" fi done - [ `echo \`ls "${BASE_DIR}/${TARGET_DIR}" | wc -l\`` -eq 0 ] && ISNEW=1 + [ `echo \`ls "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | wc -l\`` -eq 0 ] && ISNEW=1 # let's move to workdir cd "${BASE_DIR}/temp" for i in error ok list newlist; do