mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-27 23:58:24 +00:00
fix make-dist.sh
This commit is contained in:
parent
db14eb990a
commit
b8414b3d05
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# this has to run once atfer git clone
|
# this has to run once atfer git clone
|
||||||
# and every time we create new hooks
|
# and every time we create new hooks
|
||||||
#### $$VERSION$$ v0.72-1-g67c47ac
|
#### $$VERSION$$ v0.72-3-gdb14eb9
|
||||||
|
|
||||||
# magic to ensure that we're always inside the root of our application,
|
# magic to ensure that we're always inside the root of our application,
|
||||||
# no matter from which directory we'll run script
|
# no matter from which directory we'll run script
|
||||||
@ -31,6 +31,7 @@ cp -r ${DISTFILES} "${DISTDIR}"
|
|||||||
cd "${DISTDIR}" || exit 1
|
cd "${DISTDIR}" || exit 1
|
||||||
|
|
||||||
# additional stuff
|
# additional stuff
|
||||||
|
mv "bashbot.rc" "bashbot.rc.dist"
|
||||||
mv "commands.sh" "commands.sh.dist"
|
mv "commands.sh" "commands.sh.dist"
|
||||||
mv "mycommands.sh" "mycommands.sh.dist"
|
mv "mycommands.sh" "mycommands.sh.dist"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# files: mycommands.sh.dist
|
# files: mycommands.sh.dist
|
||||||
# copy to mycommands.sh and add all your commands and functions here ...
|
# copy to mycommands.sh and add all your commands and functions here ...
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v0.72-1-g67c47ac
|
#### $$VERSION$$ v0.72-3-gdb14eb9
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
@ -64,6 +64,7 @@ else
|
|||||||
#######################
|
#######################
|
||||||
# Inline query examples, do not use them in production (exept image search ;-)
|
# Inline query examples, do not use them in production (exept image search ;-)
|
||||||
# shellcheck disable=SC2128
|
# shellcheck disable=SC2128
|
||||||
|
iQUERY="${iQUERY,,}" # all lowercase
|
||||||
case "${iQUERY}" in
|
case "${iQUERY}" in
|
||||||
"image "*) # search images with yahoo
|
"image "*) # search images with yahoo
|
||||||
local search="${iQUERY#* }"
|
local search="${iQUERY#* }"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user