archive : only archive dirs by default.
This commit is contained in:
parent
9974dd1c4c
commit
3095485355
|
@ -13,9 +13,9 @@ archive()
|
||||||
local total=${#} # total to process.
|
local total=${#} # total to process.
|
||||||
local date=$(_ARCHIVE_DATE) # date stamp.
|
local date=$(_ARCHIVE_DATE) # date stamp.
|
||||||
|
|
||||||
# set dafult value to target all supported archives.
|
# Set dafult value to target all directories.
|
||||||
if [[ "${targets}" = "" ]]; then
|
if [[ "${targets}" = "" ]]; then
|
||||||
targets=($(ls))
|
targets=($(ls --classify | grep /$))
|
||||||
total=${#targets[@]}
|
total=${#targets[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -48,9 +48,9 @@ archive_fast()
|
||||||
local total=${#} # total to process.
|
local total=${#} # total to process.
|
||||||
local date=$(_ARCHIVE_DATE) # date stamp.
|
local date=$(_ARCHIVE_DATE) # date stamp.
|
||||||
|
|
||||||
# set dafult value to target all supported archives.
|
# Set dafult value to target all directories.
|
||||||
if [[ "${targets}" = "" ]]; then
|
if [[ "${targets}" = "" ]]; then
|
||||||
targets=(*)
|
targets=($(ls --classify | grep /$))
|
||||||
total=${#targets[@]}
|
total=${#targets[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in a new issue