diff --git a/modules/archive/functions/archive b/modules/archive/functions/archive index 74d68fe..47f179f 100644 --- a/modules/archive/functions/archive +++ b/modules/archive/functions/archive @@ -5,13 +5,8 @@ local archive_name dir_to_archive if (( ${#} != 2 )); then - cat >&2 <&2 + return 1 fi # we are quitting (above) if there are not exactly 2 vars, diff --git a/modules/archive/functions/unarchive b/modules/archive/functions/unarchive index cb0b99e..d9cdcba 100644 --- a/modules/archive/functions/unarchive +++ b/modules/archive/functions/unarchive @@ -5,10 +5,8 @@ local archive_name if (( ${#} != 1 )); then - cat >&2 <&2 + return 1 fi if [[ ! -s ${1} ]]; then