Mercurial > ec-dotfiles
changeset 207:17d816a63b4c
final progress version
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 17:11:01 +0000 |
parents | a44ba2e495a1 |
children | 92505dfbb346 |
files | moefetch.sh |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/moefetch.sh Mon Jun 29 17:07:26 2009 +0000 +++ b/moefetch.sh Mon Jun 29 17:11:01 2009 +0000 @@ -176,7 +176,7 @@ # THE FILES # current dir: ${BASE_DIR}/${SITE_DIR}/${TARGET_DIR} - printf "Cleaning up repository folder..." + printf "Cleaning up repository folder... " Progress_Init TRASH_DIR=$(date -u "+${SITE_DIR}-${TARGET_DIR}-%Y%m%d-%H.%M") mkdir -p "${BASE_DIR}/trash/${TRASH_DIR}" || Err_Fatal "Unable to create trash folder" @@ -206,7 +206,7 @@ Check_Files() { if [ ! "${ISNEW}" ]; then [ "${NOCLEAN}" ] || Cleanup_Repository - printf "Checking for errors..." + printf "Checking for errors... " Progress_Init > "${TEMP_PREFIX}-error" for FILE in "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}/"* @@ -234,7 +234,7 @@ fi echo "$(Count_Files "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}") file(s) available locally" - printf "Generating list of new files..." + printf "Generating list of new files... " Progress_Init # THE FILES #ls "../${TARGET_DIR}" | grep -vf "${TARGET_DIR}-error" > "${TARGET_DIR}-ok" @@ -252,7 +252,7 @@ else if [ "${ISQUICK}" ]; then - echo "quick mode selected. Skipping check" + echo "Quick mode selected. Skipping check" else echo "Empty local repository" fi @@ -265,7 +265,7 @@ if [ "$(echo $(wc -l < "${TEMP_PREFIX}-newlist"))" -eq 0 ]; then echo "No new file" else - printf "Starting wget..." + printf "Starting wget... " cd "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" wget -e continue=on -bi "${TEMP_PREFIX}-newlist" -o "${TEMP_PREFIX}.log" fi