diff --git a/.config/bash/module/archive.sh b/.config/bash/module/archive.sh index 8250281..8087dca 100644 --- a/.config/bash/module/archive.sh +++ b/.config/bash/module/archive.sh @@ -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