mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-21 20:35:10 +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}"
|
||||
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user