diff --git a/document/linux/config/bash/module/archive.sh b/document/linux/config/bash/module/archive.sh index 0e9bb99..d0e3b03 100644 --- a/document/linux/config/bash/module/archive.sh +++ b/document/linux/config/bash/module/archive.sh @@ -98,9 +98,11 @@ archive_check() ((count++)) done - # report if any failed. + # report result. if [[ ${failed} -gt 0 ]]; then echo -e "${color_bred}Items failed to validate: ${failed}.${color_default}" + else + echo -e "${color_green}All successful.${color_default}" fi } diff --git a/document/linux/config/bash/module/name.sh b/document/linux/config/bash/module/name.sh index 125cc8e..088188d 100644 --- a/document/linux/config/bash/module/name.sh +++ b/document/linux/config/bash/module/name.sh @@ -117,6 +117,7 @@ name_hash_check() files="[^.]*" total=$(ls -p | grep -v / | wc -l) fi + # process. for file in $files; do # process only files. @@ -141,9 +142,11 @@ name_hash_check() fi done - # report if any failed. + # report result. if [[ ${failed} -gt 0 ]]; then echo -e "${color_bred}Items failed to validate: ${failed}.${color_default}" + else + echo -e "${color_green}All successful.${color_default}" fi }