add bats test suite
This commit is contained in:
parent
0d5b187864
commit
ad5c5cca2e
13 changed files with 104 additions and 3 deletions
|
|
@ -37,6 +37,13 @@ if [ $2 ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# HACK: emacs won't accept piped input as a file name, so we use --eval to open
|
||||
# the file via find-file.
|
||||
emacsclient --eval "(progn (find-file \"$NEXTFILE\") (um-journal-header) $UMTAG (message \"creating $NEXTFILE\"))"
|
||||
UMELISP="(progn (find-file \"$NEXTFILE\") (um-journal-header) $UMTAG (message \"creating $NEXTFILE\"))"
|
||||
|
||||
# for testing and piping
|
||||
if [ $UMNEXTECHO = true ]; then
|
||||
echo $NEXTFILE $UMTAG
|
||||
else
|
||||
# HACK: emacs won't accept piped input as a file name, so we use --eval to open
|
||||
# the file via find-file.
|
||||
emacsclient --eval "$UMELISP"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue