Include debug statements in `add()` to print positional arguments.

This commit is contained in:
William Melody 2015-10-19 16:29:06 -07:00
parent b539cd6136
commit e9b78ee15f
1 changed files with 4 additions and 0 deletions

4
hosts
View File

@ -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:-}