File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
if [ -z " $EMACS " ]; then
16
16
EMACS=emacs
17
- elif [ ! $( which " $EMACS " ) ]; then
17
+ fi
18
+
19
+ $EMACS --batch || {
18
20
echo " You must set EMACS to a program that runs emacs."
19
21
exit 1
20
- fi
22
+ }
21
23
22
- $( " $EMACS " -batch > /dev/null 2>&1 ) || {
24
+ $( $EMACS -batch > /dev/null 2>&1 ) || {
23
25
echo " Your emacs command ($EMACS ) does not run properly."
24
26
exit 2
25
27
};
26
28
27
- $( " $EMACS " -batch --eval " (require 'ert)" > /dev/null 2>&1 ) || {
29
+ $( $EMACS -batch --eval " (require 'ert)" > /dev/null 2>&1 ) || {
28
30
echo ' You must install the `ert` dependency; see README.md'
29
31
exit 3
30
32
};
31
33
32
- " $EMACS " -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
34
+ $EMACS -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
You can’t perform that action at this time.
0 commit comments