remove unsed variable

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-05-21 23:35:56 +02:00
parent e08b52e043
commit 9ef99ee1b8
2 changed files with 7 additions and 8 deletions

View File

@ -35,9 +35,6 @@ bashbot_help='*Available commands*:
Written by Drew (@topkecleon), Daniil Gentili (@danogentili) and KayM(@gnadelwartz). Written by Drew (@topkecleon), Daniil Gentili (@danogentili) and KayM(@gnadelwartz).
Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash) Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash)
' '
# we don't know whom we are ...
copname=""
# load modues on startup and always on on debug # load modues on startup and always on on debug
if [ "${1}" = "source" ] || [[ "${1}" = *"debug"* ]] ; then if [ "${1}" = "source" ] || [[ "${1}" = *"debug"* ]] ; then

View File

@ -28,15 +28,15 @@ As an alternative to download the zip files, you can clone the github repository
### Update bashbot ### Update bashbot
**Note: all files including 'mycommands.sh' may overwritten, make a backup!**
1. Go to the directory where you had installed bashbot, e.g. 1. Go to the directory where you had installed bashbot, e.g.
* your $HOME directory * your $HOME directory
* /usr/local * /usr/local
2. [Download latest release zip from github](https://github.com/topkecleon/telegram-bot-bash/releases) 2. [Download latest release zip from github](https://github.com/topkecleon/telegram-bot-bash/releases)
3. Extract all files to your existing bashbot dir 3. Stop all running instances of bashbot
**Note: all files execpt 'mycommands.sh' and 'commands.sh' may overwritten!** 4. Extract all files to your existing bashbot dir
4. Save your your current 'commands.sh' and run ```cp commands.sh.dist commands.sh``` 5. Run ```sudo ./bashbot.sh init``` to setup your environment after the update
5. Stop all running instances of bashbot at this point latest
6. Run ```sudo ./bashbot.sh init``` to setup your environment after the update
If you modified 'commands.sh' re apply all changes to the new 'commands.sh'. To avoid this all your modifications If you modified 'commands.sh' re apply all changes to the new 'commands.sh'. To avoid this all your modifications
must be done in 'mycommands.sh' only. must be done in 'mycommands.sh' only.
@ -60,6 +60,8 @@ must be replaced by ```send_interactive "${CHATD[ID]}" "${MESSAGE}"```
From version 0.60 on your commands must be placed in 'mycommands.sh'. If you update from a version with your commands From version 0.60 on your commands must be placed in 'mycommands.sh'. If you update from a version with your commands
in 'commands.sh' move all your commands and functions to 'mycommands.sh'. in 'commands.sh' move all your commands and functions to 'mycommands.sh'.
From version 0.80 on 'commands.sh' will be overwritten on update!
#### Location of var / tmp / data dirs #### Location of var / tmp / data dirs
From version 0.70 on the tmp dir is renamed to 'data-bot-bash' to reflect the fact that not only temporary files are stored. an existing 'tmp-bot-bash' will be automatically renamed after update. From version 0.70 on the tmp dir is renamed to 'data-bot-bash' to reflect the fact that not only temporary files are stored. an existing 'tmp-bot-bash' will be automatically renamed after update.