Added TODO to README.md

This commit is contained in:
Laurent Cozic
2014-01-12 03:09:12 +08:00
parent a3bd5009b1
commit 27a98fb54b
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ fn_parse_date() {
# Converts YYYY-MM-DD-HHMMSS to YYYY-MM-DD HH:MM:SS and then to Unix Epoch.
case "$OSTYPE" in
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
cygwin*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
esac
}
@@ -46,7 +47,7 @@ fn_expire_backup() {
fi
fn_log_info "Expiring $1"
rm -rf -- "$1"
# rm -rf -- "$1"
}
# -----------------------------------------------------------------------------
@@ -239,6 +240,7 @@ while : ; do
# -----------------------------------------------------------------------------
# Check whether rsync reported any errors
# -----------------------------------------------------------------------------
if [ -n "$(grep "rsync:" "$LOG_FILE")" ]; then
fn_log_warn "Rsync reported a warning, please check '$LOG_FILE' for more details."
fi