From 16a95406fe93b157138fe492f30af6e9b889bc21 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 17 May 2020 11:03:24 -0700 Subject: [PATCH] Replace `return 1` with message with `_return_1`. --- hosts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts b/hosts index af109a6..f9accf5 100755 --- a/hosts +++ b/hosts @@ -1334,8 +1334,7 @@ HEREDOC search() { if _blank "${_COMMAND_ARGV[1]:-}" then - help "search" - return 1 + _return_1 help "search" fi list "$@" @@ -1370,8 +1369,7 @@ show() { if [[ -z "${_disabled_records}" ]] && [[ -z "${_enabled_records}" ]] then - printf "No matching entries.\\n" - return 1 + _return_1 printf "No matching entries.\\n" fi _print_entries "${_enabled_records}"