mirror of
https://github.com/octoleo/hosts.git
synced 2025-01-01 05:31:49 +00:00
Include debug statements in add()
to print positional arguments.
This commit is contained in:
parent
b539cd6136
commit
e9b78ee15f
4
hosts
4
hosts
@ -673,6 +673,10 @@ Description:
|
||||
Add a given IP address and hostname pair, along with an optional comment.
|
||||
EOM
|
||||
add() {
|
||||
_debug printf "add() \$1: %s\n" "${1:-}"
|
||||
_debug printf "add() \$2: %s\n" "${2:-}"
|
||||
_debug printf "add() \$3: %s\n" "${3:-}"
|
||||
|
||||
_verify_write_permissions
|
||||
local ip=${1:-}
|
||||
local hostname=${2:-}
|
||||
|
Loading…
Reference in New Issue
Block a user