comparison moefetch.sh @ 197:a17a2f366680

one sed rule escaped from migration
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 12:24:32 +0000
parents 4d28f3a957ee
children 735012343a67
comparison
equal deleted inserted replaced
196:4d28f3a957ee 197:a17a2f366680
190 echo "Checking for errors..." 190 echo "Checking for errors..."
191 cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" 191 cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}"
192 > "${TEMP_PREFIX}-error" 192 > "${TEMP_PREFIX}-error"
193 for FILE in * 193 for FILE in *
194 do 194 do
195 if [ "$(echo "${FILE}" | sed -e '${SED_IS_MD5_FILE}' | grep -v ^$)" ]; then 195 if [ "$(echo "${FILE}" | sed -e "${SED_IS_MD5_FILE}" | grep -v ^$)" ]; then
196 echo 196 echo
197 echo "Not a valid danbooru file: ${FILE}" 197 echo "Not a valid danbooru file: ${FILE}"
198 else 198 else
199 if [ "$(${MD5} "${FILE}" | cut -d ' ' -f1 -)" != "$(echo "${FILE}" | cut -d '.' -f1)" ] 199 if [ "$(${MD5} "${FILE}" | cut -d ' ' -f1 -)" != "$(echo "${FILE}" | cut -d '.' -f1)" ]
200 then 200 then