mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 04:45:00 +00:00
bin: fix some script bugs
This commit is contained in:
parent
da214ab819
commit
fa8e8a267c
@ -13,7 +13,7 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 18.12.2020 12:27
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
############
|
||||
|
@ -16,7 +16,7 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 23.12.2020 20:34
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
|
@ -19,7 +19,7 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 03.01.2021 15:37
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
|
@ -24,7 +24,7 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 16.12.2020 16:14
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
# shellcheck disable=SC2059
|
||||
|
||||
@ -55,7 +55,7 @@ fi
|
||||
# parse args -----------------
|
||||
SEND="send_message"
|
||||
case "$1" in
|
||||
"nor*"|"tex*")
|
||||
"nor"*|"tex"*)
|
||||
SEND="send_normal_message"
|
||||
shift
|
||||
;;
|
||||
|
@ -22,14 +22,14 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 23.12.2020 16:52
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
# parse args
|
||||
SEND="edit_normal_message"
|
||||
case "$1" in
|
||||
"nor*"|"tex*")
|
||||
"nor"*|"tex"*)
|
||||
SEND="edit_normal_message"
|
||||
shift
|
||||
;;
|
||||
@ -54,7 +54,6 @@ case "$1" in
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# set bashbot environment
|
||||
# shellcheck disable=SC1090
|
||||
source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug
|
||||
|
@ -24,12 +24,12 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 25.12.2020 20:24
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-25-gcb81f7c
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
# parse args
|
||||
SEND="upload_file"
|
||||
SEND="send_file"
|
||||
case "$1" in
|
||||
'')
|
||||
printf "missing arguments\n"
|
||||
|
@ -21,14 +21,14 @@
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 16.12.2020 11:34
|
||||
#
|
||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
||||
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
# parse args
|
||||
SEND="send_message"
|
||||
case "$1" in
|
||||
"nor*"|"tex*")
|
||||
"nor"*|"tex"*)
|
||||
SEND="send_normal_message"
|
||||
shift
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user