From 89b2986db9f3f5dd16972f31c0e52f5f750242e8 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 7 Jan 2016 15:36:31 -0500 Subject: [PATCH] cleanup function error messages --- modules/archive/functions/archive | 9 ++------- modules/archive/functions/unarchive | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) 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