Skip to content

Commit

Permalink
treehouses log refactor log_help_and_exit1 (fixes #1997) (#2000)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Neethu-Mohan and dogi authored Feb 18, 2021
1 parent 120fcd9 commit efac925
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit efac925

Please sign in to comment.