mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45:11 +00:00
Remove extra comments in _main()
.
This commit is contained in:
parent
0bd86e533d
commit
5d4a9dfb28
3
hosts
3
hosts
@ -1653,13 +1653,10 @@ _main() {
|
|||||||
_CMD="${HOSTS_DEFAULT_COMMAND}"
|
_CMD="${HOSTS_DEFAULT_COMMAND}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load all of the commands.
|
|
||||||
_load_commands
|
_load_commands
|
||||||
|
|
||||||
# If the command is defined, run it, otherwise return an error.
|
|
||||||
if _contains "${_CMD}" "${_DEFINED_COMMANDS[@]:-}"
|
if _contains "${_CMD}" "${_DEFINED_COMMANDS[@]:-}"
|
||||||
then
|
then
|
||||||
# Pass all comment arguments to the program except for the first ($0).
|
|
||||||
"${_CMD}" "${_COMMAND_PARAMETERS[@]:-}"
|
"${_CMD}" "${_COMMAND_PARAMETERS[@]:-}"
|
||||||
else
|
else
|
||||||
_exit_1 printf "Unknown command: %s\\n" "${_CMD}"
|
_exit_1 printf "Unknown command: %s\\n" "${_CMD}"
|
||||||
|
Loading…
Reference in New Issue
Block a user