diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/garbage.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/garbage.sh b/lib/garbage.sh index 9f3bd33..3a0ca97 100644 --- a/lib/garbage.sh +++ b/lib/garbage.sh @@ -20,6 +20,8 @@ [ "x${_GARBAGE_SM+set}" = 'xset' ] && return 0 _GARBAGE_SM=1 +use locale +use output use dir collect_garbage() @@ -30,6 +32,8 @@ collect_garbage() local dirs= local file= + info_v "$(get_msg 'collecting_garbage')" + # NB: The %s format conversion specifier is not specified by POSIX, but # it is supported by the GNU and BusyBox implementations of date. cur_time=$(date '+%s') @@ -43,6 +47,7 @@ collect_garbage() break fi while read -r dirs file; do + info_v "$(get_msg 'collecting_garbage_file')" "${file}" rm -f "${base_dir}/${file}" while [ ${dirs} -gt 0 ]; do file="${file%/*}" @@ -61,6 +66,8 @@ mark_pool_garbage() local file="${1}" local time= + info_v "$(get_msg 'marking_garbage_file')" "${file}" + # NB: The %s format conversion specifier is not specified by POSIX, but # it is supported by the GNU and BusyBox implementations of date. time=$(date '+%s') |