diff --git a/.config/bash/module/checksum.sh b/.config/bash/module/checksum.sh index d6d810b..ed5c738 100644 --- a/.config/bash/module/checksum.sh +++ b/.config/bash/module/checksum.sh @@ -40,8 +40,10 @@ checksum_create() if [[ ${failed} != 0 ]]; then echo -e "${color_bred}Failed: ${failed}.${color_default}" - false + return 1 fi + + [[ ${total} = 0 ]] && return 1 } # Check stored values against actual files. @@ -86,13 +88,15 @@ checksum_check() if [[ ${skipped} != 0 ]]; then echo -e "${color_byellow}Skipped: ${skipped}.${color_default}" - false + return 1 fi if [[ ${failed} != 0 ]]; then echo -e "${color_bred}Failed: ${failed}.${color_default}" - false + return 1 fi + + [[ ${total} = 0 ]] && return 1 } checksum()