diff options
author | u <u@cletus> | 2021-03-12 00:45:51 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-08-14 19:36:08 -0400 |
commit | fc9d27145f69a469a516a4e2a98667a4c2f4869e (patch) | |
tree | 631ac54fe45a7963de81a82d2746cc731b9e4c7c | |
parent | 240ae4da2bbaac45ad0394debdf85b04830e93f5 (diff) |
bashrc: get_spacemacs is more robust
-rw-r--r-- | dot/bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -411,9 +411,10 @@ newfile() | |||
411 | get_spacemacs() | 411 | get_spacemacs() |
412 | { | 412 | { |
413 | if [ -d "$HOME/.emacs.d" ] | 413 | if [ -d "$HOME/.emacs.d" ] |
414 | then return | 414 | then |
415 | else git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d | 415 | rmdir "$HOME/.emacs.d" || return |
416 | fi | 416 | fi |
417 | git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d | ||
417 | } | 418 | } |
418 | 419 | ||
419 | get_youtube-dl() | 420 | get_youtube-dl() |