mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-21 20:35:10 +00:00
Replace return 1
with message with _return_1
.
This commit is contained in:
parent
5a7d0cca91
commit
16a95406fe
6
hosts
6
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user