Group : Fix skip.

This commit is contained in:
Dmitry Voronin 2024-01-27 19:46:57 +03:00
parent c7c3fae834
commit 5dcd9b2f63

View file

@ -50,7 +50,11 @@ function group_year_current() {
local year=$(stat --format=%y ${target})
year=${year%%-*}
[[ "${year}" = "${today}" ]] && cp -- ${target} ./${today}/
if [[ "${year}" = "${today}" ]]; then
/usr/bin/env cp -- ${target} ./${today}/
else
_iterate_skip
fi
}
_iterate_targets process ${targets[@]}