1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-24 13:47:35 +00:00

Remove extra comments in _main().

This commit is contained in:
William Melody 2020-06-07 14:36:21 -07:00
parent 0bd86e533d
commit 5d4a9dfb28

3
hosts
View File

@ -1653,13 +1653,10 @@ _main() {
_CMD="${HOSTS_DEFAULT_COMMAND}"
fi
# Load all of the commands.
_load_commands
# If the command is defined, run it, otherwise return an error.
if _contains "${_CMD}" "${_DEFINED_COMMANDS[@]:-}"
then
# Pass all comment arguments to the program except for the first ($0).
"${_CMD}" "${_COMMAND_PARAMETERS[@]:-}"
else
_exit_1 printf "Unknown command: %s\\n" "${_CMD}"