mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +00:00
fix exclude files from everywhere
This commit is contained in:
parent
f548b0e1a3
commit
873169b029
@ -2,12 +2,13 @@
|
|||||||
# file: make-distribution.sh
|
# file: make-distribution.sh
|
||||||
# creates files and arcchives to dirtribute bashbot
|
# creates files and arcchives to dirtribute bashbot
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.2-dev2-42-g62f2a0d
|
#### $$VERSION$$ v1.2-dev2-44-gf548b0e
|
||||||
|
|
||||||
# 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
|
||||||
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
||||||
if [ "$GIT_DIR" != "" ] ; then
|
if [ "$GIT_DIR" != "" ] ; then
|
||||||
|
[[ "$GIT_DIR" != "/"* ]] && GIT_DIR="${PWD}/${GIT_DIR}"
|
||||||
cd "$GIT_DIR/.." || exit 1
|
cd "$GIT_DIR/.." || exit 1
|
||||||
else
|
else
|
||||||
echo "Sorry, no git repository $(pwd)" && exit 1
|
echo "Sorry, no git repository $(pwd)" && exit 1
|
||||||
|
@ -5,12 +5,13 @@
|
|||||||
# If you your bot is finished you can use make-standalone.sh to create the
|
# If you your bot is finished you can use make-standalone.sh to create the
|
||||||
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.2-0-gc50499c
|
#### $$VERSION$$ v1.2-dev2-44-gf548b0e
|
||||||
|
|
||||||
# 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
|
||||||
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
||||||
if [ "$GIT_DIR" != "" ] ; then
|
if [ "$GIT_DIR" != "" ] ; then
|
||||||
|
[[ "$GIT_DIR" != "/"* ]] && GIT_DIR="${PWD}/${GIT_DIR}"
|
||||||
cd "$GIT_DIR/.." || exit 1
|
cd "$GIT_DIR/.." || exit 1
|
||||||
else
|
else
|
||||||
[ ! -f "bashbot.sh" ] && echo "bashbot.sh not found in $(pwd)" && exit 1
|
[ ! -f "bashbot.sh" ] && echo "bashbot.sh not found in $(pwd)" && exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user