Mercurial > ec-dotfiles
changeset 167:78ac6fd03e3a
more fix
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 19:29:18 +0000 |
parents | cc60e8cf7793 |
children | 2781576c06a5 |
files | moefetch.sh |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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