Fixed bugs in the installer:
- Bytecompilation run twice - Bash style string concat that doesn't work with sh. - Default path was \$HOME instead of the users homedir ('' vs "").
This commit is contained in:
parent
e1c8e9b834
commit
ccf74a1197
1 changed files with 57 additions and 58 deletions
|
@ -122,8 +122,8 @@ done
|
||||||
|
|
||||||
VERBOSE_COLOR=$BBLUE
|
VERBOSE_COLOR=$BBLUE
|
||||||
|
|
||||||
[ -z $PRELUDE_URL ] && PRELUDE_URL='https://github.com/bbatsov/prelude.git'
|
[ -z $PRELUDE_URL ] && PRELUDE_URL="https://github.com/bbatsov/prelude.git"
|
||||||
[ -z $PRELUDE_INSTALL_DIR ] && PRELUDE_INSTALL_DIR='$HOME/.emacs.d'
|
[ -z $PRELUDE_INSTALL_DIR ] && PRELUDE_INSTALL_DIR="$HOME/.emacs.d"
|
||||||
|
|
||||||
if [ x$PRELUDE_VERBOSE != x ]
|
if [ x$PRELUDE_VERBOSE != x ]
|
||||||
then
|
then
|
||||||
|
@ -192,7 +192,7 @@ then
|
||||||
if [ -n $PRELUDE_INTO ]
|
if [ -n $PRELUDE_INTO ]
|
||||||
then
|
then
|
||||||
# Install into existing config
|
# Install into existing config
|
||||||
PRELUDE_INSTALL_DIR+='/prelude'
|
PRELUDE_INSTALL_DIR=$PRELUDE_INSTALL_DIR"/prelude"
|
||||||
install_prelude
|
install_prelude
|
||||||
else
|
else
|
||||||
# Replace existing config
|
# Replace existing config
|
||||||
|
@ -221,7 +221,6 @@ then
|
||||||
if [ x$PRELUDE_VERBOSE != x ]
|
if [ x$PRELUDE_VERBOSE != x ]
|
||||||
then
|
then
|
||||||
emacs -batch -f batch-byte-compile $PRELUDE_INSTALL_DIR/prelude/*.el
|
emacs -batch -f batch-byte-compile $PRELUDE_INSTALL_DIR/prelude/*.el
|
||||||
emacs -batch -f batch-byte-compile "$PRELUDE_INSTALL_DIR/prelude/*.el"
|
|
||||||
else
|
else
|
||||||
emacs -batch -f batch-byte-compile $PRELUDE_INSTALL_DIR/prelude/*.el > /dev/null 2>&1
|
emacs -batch -f batch-byte-compile $PRELUDE_INSTALL_DIR/prelude/*.el > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue