diff options
Diffstat (limited to 'emacs.eselect')
-rw-r--r-- | emacs.eselect | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs.eselect b/emacs.eselect index 544bba7..3f6d7af 100644 --- a/emacs.eselect +++ b/emacs.eselect @@ -184,7 +184,7 @@ do_set() { [[ -w "${ROOT}/usr/bin" ]] || die -q "You need to be root!" if [[ -L "${ROOT}/usr/bin/emacs" ]]; then - true + remove_symlinks || die -q "Couldn't remove existing symlink" elif [[ -e "${ROOT}/usr/bin/emacs" ]]; then die -q "Sorry, ${ROOT}/usr/bin/emacs confuses me" fi @@ -210,6 +210,7 @@ do_update() { if [[ -L "${ROOT}/usr/bin/emacs" ]]; then [[ ${1} == "--if-unset" \ && -e "$(canonicalise ${ROOT}/usr/bin/emacs)" ]] && return + remove_symlinks || die -q "Couldn't remove existing symlink" elif [[ -e "${ROOT}/usr/bin/emacs" ]]; then die -q "Sorry, ${ROOT}/usr/bin/emacs confuses me" fi |