~craftyguy/ddns.sh

0cacc4a2346c16ae4284dd1c7cf8b96672097716 — Clayton Craft 11 months ago cdcd342
add "fail" function
1 files changed, 6 insertions(+), 0 deletions(-)

M ddns.sh
M ddns.sh => ddns.sh +6 -0
@@ 9,6 9,12 @@ usage() {
	exit 1
}

# $1: message to print
fail() {
	echo "$1"
	exit 1
}

CONFIG="${1:-}"
PROVIDER=
IP_ADDRESS="${IP_ADDRESS:-}"