Replace `return 1` with message with `_return_1`.

This commit is contained in:
William Melody 2020-05-17 11:03:24 -07:00
parent 5a7d0cca91
commit 16a95406fe
1 changed files with 2 additions and 4 deletions

6
hosts
View File

@ -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}"