archive : only archive dirs by default.

This commit is contained in:
Dmitry Voronin 2023-11-22 11:56:16 +03:00
parent 9974dd1c4c
commit 3095485355

View file

@ -13,9 +13,9 @@ archive()
local total=${#} # total to process.
local date=$(_ARCHIVE_DATE) # date stamp.
# set dafult value to target all supported archives.
# Set dafult value to target all directories.
if [[ "${targets}" = "" ]]; then
targets=($(ls))
targets=($(ls --classify | grep /$))
total=${#targets[@]}
fi
@ -48,9 +48,9 @@ archive_fast()
local total=${#} # total to process.
local date=$(_ARCHIVE_DATE) # date stamp.
# set dafult value to target all supported archives.
# Set dafult value to target all directories.
if [[ "${targets}" = "" ]]; then
targets=(*)
targets=($(ls --classify | grep /$))
total=${#targets[@]}
fi