mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-30 18:46:45 +00:00
chore(dfm): check for fd and shfmt
This commit is contained in:
@@ -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' \
|
||||
|
||||
Reference in New Issue
Block a user