From 8bb4b7e5ac319368e585cb2323d9b2090a251b6f Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 22 Jan 2021 21:22:16 +0100 Subject: [PATCH] bin: fix missing print_help arg --- bin/bashbot_env.inc.sh | 2 +- bin/bashbot_stats.sh | 4 ++-- bin/delete_message.sh | 4 ++-- bin/edit_buttons.sh | 4 ++-- bin/edit_message.sh | 4 ++-- bin/send_broadcast.sh | 4 ++-- bin/send_buttons.sh | 4 ++-- bin/send_file.sh | 4 ++-- bin/send_message.sh | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bin/bashbot_env.inc.sh b/bin/bashbot_env.inc.sh index 7feff46..b4d1568 100644 --- a/bin/bashbot_env.inc.sh +++ b/bin/bashbot_env.inc.sh @@ -13,7 +13,7 @@ # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 18.12.2020 12:27 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== ############ diff --git a/bin/bashbot_stats.sh b/bin/bashbot_stats.sh index 5c03dae..4a80b14 100755 --- a/bin/bashbot_stats.sh +++ b/bin/bashbot_stats.sh @@ -17,12 +17,12 @@ USAGE='bashbot_stats.sh [-h|--help] [debug]' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 23.12.2020 20:34 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "$1" -[ -n "$1" ] && print_help +[ -n "$1" ] && print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/delete_message.sh b/bin/delete_message.sh index 7bcead1..39ecbb1 100755 --- a/bin/delete_message.sh +++ b/bin/delete_message.sh @@ -20,7 +20,7 @@ USAGE='delete_message.sh [-h|--help] "CHAT[ID]" "MESSAGE[ID]" [debug]' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 03.01.2021 15:37 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -29,7 +29,7 @@ DELETE="delete_message" # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "${3:-debug}" # $3 debug -print_help +print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/edit_buttons.sh b/bin/edit_buttons.sh index b5c8572..116e7e8 100755 --- a/bin/edit_buttons.sh +++ b/bin/edit_buttons.sh @@ -25,7 +25,7 @@ USAGE='send_message.sh [-h|--help] "CHAT[ID]" "MESSAGE[ID]" "text|url" ...' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 21.01.2021 08:10 # -#### $$VERSION$$ v1.32-dev-1-g662c6f4 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -34,7 +34,7 @@ SEND="edit_inline_keyboard" # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "debug" -print_help +print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/edit_message.sh b/bin/edit_message.sh index e446517..04cb757 100755 --- a/bin/edit_message.sh +++ b/bin/edit_message.sh @@ -23,7 +23,7 @@ USAGE='send_edit_message.sh [-h|--help] [format|caption] "CHAT[ID]" "MESSAGE[ID] # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 23.12.2020 16:52 # -#### $$VERSION$$ v1.32-dev-5-g3378c1a +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -50,7 +50,7 @@ esac # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "${4:-debug}" # $4 debug -print_help +print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/send_broadcast.sh b/bin/send_broadcast.sh index 7578052..bc08db8 100755 --- a/bin/send_broadcast.sh +++ b/bin/send_broadcast.sh @@ -28,7 +28,7 @@ USAGE='broadcast_message.sh [-h|--help] [--doit] [--groups|--both|--db=file] [fo # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 16.12.2020 16:14 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -80,7 +80,7 @@ esac # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "$2" # $3 debug -print_help +print_help "$1" # read in users from given DB or count.jssh database="${USERDB:-${COUNTFILE}}" diff --git a/bin/send_buttons.sh b/bin/send_buttons.sh index 28fd571..86ac108 100755 --- a/bin/send_buttons.sh +++ b/bin/send_buttons.sh @@ -25,7 +25,7 @@ USAGE='send_message.sh [-h|--help] "CHAT[ID]" "message" "text|url" ...' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 18.01.2021 11:34 # -#### $$VERSION$$ v1.32-dev-1-g662c6f4 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -34,7 +34,7 @@ SEND="send_inline_keyboard" # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "debug" -print_help +print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/send_file.sh b/bin/send_file.sh index d4886db..4c4fc88 100755 --- a/bin/send_file.sh +++ b/bin/send_file.sh @@ -25,7 +25,7 @@ USAGE='send_file.sh [-h|--help] "CHAT[ID]" "file|URL" "caption ...." [type] [deb # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 25.12.2020 20:24 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== #### @@ -34,7 +34,7 @@ SEND="send_file" # set bashbot environment source "${0%/*}/bashbot_env.inc.sh" "${5:-debug}" # $5 debug -print_help +print_help "$1" #### # ready, do stuff here ----- diff --git a/bin/send_message.sh b/bin/send_message.sh index 2db6cc1..ca324e9 100755 --- a/bin/send_message.sh +++ b/bin/send_message.sh @@ -22,7 +22,7 @@ USAGE='send_message.sh [-h|--help] [format] "CHAT[ID]" "message ...." [debug]' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 16.12.2020 11:34 # -#### $$VERSION$$ v1.31-dev-14-g749eee7 +#### $$VERSION$$ v1.32-dev-6-g2832801 #=============================================================================== ####