Group : Fix skip.
This commit is contained in:
parent
c7c3fae834
commit
5dcd9b2f63
|
@ -50,7 +50,11 @@ function group_year_current() {
|
||||||
local year=$(stat --format=%y ${target})
|
local year=$(stat --format=%y ${target})
|
||||||
year=${year%%-*}
|
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[@]}
|
_iterate_targets process ${targets[@]}
|
||||||
|
|
Reference in a new issue