diff --git a/system/home/scripts/shell/sync-emacs.sh b/system/home/scripts/shell/sync-emacs.sh index f1ae42fd..056fdf0d 100644 --- a/system/home/scripts/shell/sync-emacs.sh +++ b/system/home/scripts/shell/sync-emacs.sh @@ -7,4 +7,4 @@ else fi # Cleanup legacy Emacs config file/directory [ -f "$HOME/.emacs" ] && rm "$HOME/.emacs" -[ -f "$HOME/.emacs.d" ] && rm -r "$HOME/.emacs.d" +[ -d "$HOME/.emacs.d" ] && rm -r "$HOME/.emacs.d"