bin: fix some script bugs

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-07 13:15:18 +01:00
parent da214ab819
commit fa8e8a267c
7 changed files with 11 additions and 12 deletions

View File

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

View File

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

View File

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

View File

@ -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
;;

View File

@ -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

View File

@ -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"

View File

@ -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
;;