Mercurial > ec-dotfiles
comparison moefetch.sh @ 180:8e6555aa8631
(none)
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 21:13:37 +0000 |
parents | c132eb3ca841 |
children | d3b7927bdb2b |
comparison
equal
deleted
inserted
replaced
179:c132eb3ca841 | 180:8e6555aa8631 |
---|---|
123 } | 123 } |
124 | 124 |
125 # verify required folders exist and writeable | 125 # verify required folders exist and writeable |
126 Check_Folders(){ | 126 Check_Folders(){ |
127 [ -O "${BASE_DIR}" ] || Err_Fatal "You don't own ${BASE_DIR}. Please fix ${BASE_DIR}." | 127 [ -O "${BASE_DIR}" ] || Err_Fatal "You don't own ${BASE_DIR}. Please fix ${BASE_DIR}." |
128 for FOLDER in temp trash deleted "${SITE_DIR}/${TARGET_DIR}" | 128 for FOLDER in temp trash deleted "${SITE_DIR}/${TARGET_DIR}"; do |
129 do | |
130 if [ ! -d "${BASE_DIR}/${FOLDER}" ]; then | 129 if [ ! -d "${BASE_DIR}/${FOLDER}" ]; then |
131 mkdir "${BASE_DIR}/${FOLDER}" || Err_Fatal "${FOLDER} folder creation failed" | 130 mkdir "${BASE_DIR}/${FOLDER}" || Err_Fatal "${FOLDER} folder creation failed" |
132 fi | 131 fi |
133 if [ ! -O "${BASE_DIR}/${FOLDER}" ]; then | 132 if [ ! -O "${BASE_DIR}/${FOLDER}" ]; then |
134 echo "You don't own the ${BASE_DIR}/${FOLDER}, applying globally writeable permission on it" | 133 echo "You don't own the ${BASE_DIR}/${FOLDER}, applying globally writeable permission on it" |