diff --git a/modules/log.sh b/modules/log.sh index 991c1d4f1..362062be4 100644 --- a/modules/log.sh +++ b/modules/log.sh @@ -51,7 +51,11 @@ function log_comment_and_exit1() { function log_help_and_exit1() { logit "$1" "$3" - "$2_help" + if type -t $2_help >/dev/null; then + "$2_help" + else + echo "Panic: help function not found" + fi exit 1 } diff --git a/package.json b/package.json index 5cd7308dc..f675ca22e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@treehouses/cli", - "version": "1.25.1", + "version": "1.25.2", "remote": "4000", "description": "Thin command-line interface for Raspberry Pi low level configuration.", "main": "cli.sh",