From 3095485355bdc734c8602b711ed8c113d49ad97b Mon Sep 17 00:00:00 2001 From: home Date: Wed, 22 Nov 2023 11:56:16 +0300 Subject: [PATCH] archive : only archive dirs by default. --- .config/bash/module/archive.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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