aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rwxr-xr-xbot/sx-bot.sh8
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}