mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45:11 +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() {
|
search() {
|
||||||
if _blank "${_COMMAND_ARGV[1]:-}"
|
if _blank "${_COMMAND_ARGV[1]:-}"
|
||||||
then
|
then
|
||||||
help "search"
|
_return_1 help "search"
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
list "$@"
|
list "$@"
|
||||||
@ -1370,8 +1369,7 @@ show() {
|
|||||||
|
|
||||||
if [[ -z "${_disabled_records}" ]] && [[ -z "${_enabled_records}" ]]
|
if [[ -z "${_disabled_records}" ]] && [[ -z "${_enabled_records}" ]]
|
||||||
then
|
then
|
||||||
printf "No matching entries.\\n"
|
_return_1 printf "No matching entries.\\n"
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_print_entries "${_enabled_records}"
|
_print_entries "${_enabled_records}"
|
||||||
|
Loading…
Reference in New Issue
Block a user