From f392938e9eb8c232991c3d40c79dffc98d66f0c6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 13 Nov 2023 12:44:28 +0200 Subject: [PATCH] fix(dfm): have to x-have --- local/bin/dfm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/local/bin/dfm b/local/bin/dfm index 24ba400..3d2481a 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -203,7 +203,7 @@ function section_brew "autoupdate:Setups brew auto-update and runs it immediately" ) - have brew && { + x-have brew && { case "$1" in install) brew bundle install --file="$BREWFILE" --force --quiet && msg_yay "Done!" @@ -229,7 +229,7 @@ function section_brew esac } - ! have brew && menu_section "$USAGE_PREFIX" "brew not available on this system" + ! x-have brew && menu_section "$USAGE_PREFIX" "brew not available on this system" } function section_helpers @@ -294,14 +294,14 @@ function section_dotfiles msg_ok "Deleted old nvim files (share, state and cache + config)" ln -s "$DOTFILES/config/nvim" ~/.config/nvim msg_ok "Linked nvim and astronvim" - have npm && $0 install npm + x-have npm && $0 install npm msg_ok "Installed packages" msg_done "nvim reset!" ;; yamlfmt) # format yaml files - have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt" - ! have yamlfmt && msg_err "yamlfmt not found" + x-have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt" + ! x-have yamlfmt && msg_err "yamlfmt not found" ;; shfmt) # Format shell scripts according to following rules.