chore: format files with shfmt and resolve most shellcheck complaints

This commit is contained in:
2024-02-18 02:03:37 +00:00
parent 6cd89beb5e
commit 631e09f428
28 changed files with 160 additions and 140 deletions

View File

@@ -14,11 +14,11 @@ Outputs the absolute path to the given command or command alias."
fi
if [ -n "$1" ]; then
! command_path="$(command -v "tmuxifier-$1")"
command_path="$(command -v "tmuxifier-$1")" || true
if [ -z "$command_path" ]; then
resolved="$(tmuxifier-alias "$1")"
if [ -n "$resolved" ]; then
! command_path="$(command -v "tmuxifier-$resolved")"
command_path="$(command -v "tmuxifier-$resolved")" || true
fi
fi
fi