From cb759438ca72173c91601f7427e9a800d172d156 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 20 Dec 2024 06:14:09 +0000 Subject: [PATCH] Fix check for cleaning legacy Emacs config --- system/home/scripts/shell/sync-emacs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"