From 5a33d0d96596855a51b6d3996147d89daa0a6242 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 Oct 2016 14:29:34 +0100 Subject: [PATCH] editor/emacs: update cask + remove repo fn dependency --- editor/emacs/install | 2 +- editor/emacs/update | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/editor/emacs/install b/editor/emacs/install index dae63f74..56b297c0 100755 --- a/editor/emacs/install +++ b/editor/emacs/install @@ -21,7 +21,7 @@ esac if [ ! -d "$HOME/.emacs.d" ]; then - repo "hlissner/.emacs.d" "$HOME/.emacs.d" + git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d" cd "$HOME/.emacs.d" make install make snippets diff --git a/editor/emacs/update b/editor/emacs/update index ce9e4e7c..ff5eced3 100755 --- a/editor/emacs/update +++ b/editor/emacs/update @@ -1,6 +1,5 @@ #!/usr/bin/env bash -if [[ -d ~/.emacs.d ]] -then - cd ~/.emacs.d && make update -fi +[ -d "~/.cask" ] && { cd ~/.cask && git pull } +[ -d "~/.emacs.d" ] && { cd ~/.emacs.d && make update } +