From d1f2b8488e41c9be339cb39801e0fd991a3631d5 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 14 Jul 2015 10:50:35 +0100 Subject: Improve bot --- bot/sx-bot.sh | 8 +++++--- 1 file 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} -- cgit v1.2.3