emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors dc0aa99 193/434: Simplify travis run scri


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors dc0aa99 193/434: Simplify travis run script, and make it work when ECUKES_EMACS has a space in the path
Date: Sat, 7 Aug 2021 09:20:24 -0400 (EDT)

branch: elpa/multiple-cursors
commit dc0aa994594fd24858da1c51f6cd4b37db5cf533
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Simplify travis run script, and make it work when ECUKES_EMACS has a space 
in the path
    
    Yes, on OS X, one might have:
    
    ECUKES_EMACS='/Applications/Emacs 23.app/Contents/MacOS/Emacs'
---
 run-travis-ci.sh | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/run-travis-ci.sh b/run-travis-ci.sh
index 2af9086..f48064a 100755
--- a/run-travis-ci.sh
+++ b/run-travis-ci.sh
@@ -1,20 +1,12 @@
-#!/bin/sh
+#!/bin/sh -e
 
 cd "$(dirname "$0")"
 
-set_default () {
-  eval "
-if [ -z \$$1 ]; then
-  $1=$2
-fi
-"
-}
-
-set_default ECUKES_EMACS "$(which emacs)"
+ECUKES_EMACS=${ECUKES_EMACS:-$(which emacs)}
 
 echo "*** Emacs version ***"
-echo "ECUKES_EMACS =" $(which $ECUKES_EMACS)
-$ECUKES_EMACS --version
+echo "ECUKES_EMACS = $ECUKES_EMACS"
+"$ECUKES_EMACS" --version
 echo
 
 exec ./util/ecukes/ecukes --graphical



reply via email to

[Prev in Thread] Current Thread [Next in Thread]