From bc4e906ff64395569672953eabc9ce9d969a9e92 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 10 Aug 2024 13:05:38 +0300 Subject: [PATCH] chore(dfm): check for fd and shfmt --- local/bin/dfm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local/bin/dfm b/local/bin/dfm index 2dd4698..276ee50 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -412,6 +412,9 @@ section_dotfiles() ! x-have yamlfmt && msg_err "yamlfmt not found" ;; shfmt) + # If system doesn't have fd or shfmt installed, exit + ! x-have fd && msg_err "fd not found, install with asdf" + ! x-have shfmt && msg_err "shfmt not found, install with asdf" # Format shell scripts according to following rules. fd --full-path "$DOTFILES" -tx \ -E '*.pl' -E '*.php' -E '*.py' -E '*.zsh' -E 'plugins' -E 'fzf' -E 'dotbot' \