comparison moefetch.sh @ 206:a44ba2e495a1

lolfixes
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 17:07:26 +0000
parents 2e866999c042
children 17d816a63b4c
comparison
equal deleted inserted replaced
205:2e866999c042 206:a44ba2e495a1
192 [ "$(cat "${TEMP_PREFIX}-list" | sed -e "${SED_GET_FILENAME}" | grep $(echo "${TRASH}" | sed -e "${SED_GET_FILENAME}"))" ] || ISTRASH=1 192 [ "$(cat "${TEMP_PREFIX}-list" | sed -e "${SED_GET_FILENAME}" | grep $(echo "${TRASH}" | sed -e "${SED_GET_FILENAME}"))" ] || ISTRASH=1
193 fi 193 fi
194 fi 194 fi
195 if [ "${ISTRASH}" ]; then 195 if [ "${ISTRASH}" ]; then
196 mv -f "${TRASH}" "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Error deleting files" 196 mv -f "${TRASH}" "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Error deleting files"
197 echo "Moved $(echo "${TRASH}" | sed -e "${SED_GET_FILENAME}") to ${BASE_DIR}/trash/${TRASH_DIR}" 197 printf "\nMoved $(echo "${TRASH}" | sed -e "${SED_GET_FILENAME}") to ${BASE_DIR}/trash/${TRASH_DIR}\n${_last}"
198 fi 198 fi
199 Progress_Anim 199 Progress_Anim
200 done 200 done
201 rmdir "${BASE_DIR}/trash/${TRASH_DIR}" 2>/dev/null 201 rmdir "${BASE_DIR}/trash/${TRASH_DIR}" 2>/dev/null
202 Progress_Done 202 Progress_Done