diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-07-14 10:50:35 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-07-14 10:50:35 +0100 |
commit | d1f2b8488e41c9be339cb39801e0fd991a3631d5 (patch) | |
tree | e22f688646510a35316d2a73ff25c6c53491023c | |
parent | 71f0b520855dd0f55c2fccefba7eec465bda91ae (diff) |
Improve bot
-rwxr-xr-x | bot/sx-bot.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/sx-bot.sh b/bot/sx-bot.sh index c6bba65..32f6123 100755 --- a/bot/sx-bot.sh +++ b/bot/sx-bot.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +[[ -z "$EMACS" ]] && EMACS="emacs"; + DESTINATION_BRANCH=data CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) @@ -21,9 +23,9 @@ function notify-done { } function generate-tags { - emacs -Q --batch \ - -L "./" -L "./bot/" -l sx-bot \ - -f sx-bot-fetch-and-write-tags + $EMACS -Q --batch \ + -L "./" -L "./bot/" -l sx-bot \ + -f sx-bot-fetch-and-write-tags ret=$? notify-done return ${ret} |