fix shellcheck warning about help function

This commit is contained in:
Tim Cooper 2018-08-11 00:00:22 -03:00
parent ff0996f946
commit a9acb125aa

6
kjv.sh
View File

@ -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=$#