kjv

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a9acb125aab71680ff4c99cda214bf99eb5ffeda
parent ff0996f9460f3f8fa108132a50aa4f8c23bae03c
Author: Tim Cooper <tim.cooper@layeh.com>
Date:   Sat, 11 Aug 2018 00:00:22 -0300

fix shellcheck warning about help function

Diffstat:
Mkjv.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kjv.sh b/kjv.sh @@ -16,7 +16,7 @@ if [ -z "$PAGER" ]; then fi fi -function help() { +show_help() { exec >&2 echo "usage: $0 [flags] <references...>" echo @@ -61,13 +61,13 @@ while [ $# -gt 0 ]; do get_data kjv.tsv | awk -v cmd=list "$(get_data kjv.awk)" exit elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then - help + show_help fi break done if [ $# -eq 0 ]; then - help + show_help fi startIdx=$#