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 # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 18.12.2020 12:27 # 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 # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 23.12.2020 20:34 # 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 # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 03.01.2021 15:37 # 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 # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 16:14 # CREATED: 16.12.2020 16:14
# #
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b #### $$VERSION$$ v1.25-dev-34-gda214ab
#=============================================================================== #===============================================================================
# shellcheck disable=SC2059 # shellcheck disable=SC2059
@ -55,7 +55,7 @@ fi
# parse args ----------------- # parse args -----------------
SEND="send_message" SEND="send_message"
case "$1" in case "$1" in
"nor*"|"tex*") "nor"*|"tex"*)
SEND="send_normal_message" SEND="send_normal_message"
shift shift
;; ;;

View File

@ -22,14 +22,14 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 23.12.2020 16:52 # CREATED: 23.12.2020 16:52
# #
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b #### $$VERSION$$ v1.25-dev-34-gda214ab
#=============================================================================== #===============================================================================
#### ####
# parse args # parse args
SEND="edit_normal_message" SEND="edit_normal_message"
case "$1" in case "$1" in
"nor*"|"tex*") "nor"*|"tex"*)
SEND="edit_normal_message" SEND="edit_normal_message"
shift shift
;; ;;
@ -54,7 +54,6 @@ case "$1" in
;; ;;
esac esac
# set bashbot environment # set bashbot environment
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug

View File

@ -24,12 +24,12 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 25.12.2020 20:24 # CREATED: 25.12.2020 20:24
# #
#### $$VERSION$$ v1.25-dev-25-gcb81f7c #### $$VERSION$$ v1.25-dev-34-gda214ab
#=============================================================================== #===============================================================================
#### ####
# parse args # parse args
SEND="upload_file" SEND="send_file"
case "$1" in case "$1" in
'') '')
printf "missing arguments\n" printf "missing arguments\n"

View File

@ -21,14 +21,14 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 11:34 # CREATED: 16.12.2020 11:34
# #
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b #### $$VERSION$$ v1.25-dev-34-gda214ab
#=============================================================================== #===============================================================================
#### ####
# parse args # parse args
SEND="send_message" SEND="send_message"
case "$1" in case "$1" in
"nor*"|"tex*") "nor"*|"tex"*)
SEND="send_normal_message" SEND="send_normal_message"
shift shift
;; ;;