mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
style(shell): improve shell script formatting and quoting
Apply shfmt formatting and fix some schellcheck complaints.
This commit is contained in:
@@ -38,22 +38,22 @@ export PATH="$TMUXIFIER/libexec:$PATH"
|
||||
export TMUXIFIER_MIN_TMUX_VERSION="1.6"
|
||||
if [ "$(tmuxifier-tmux-version "$TMUXIFIER_MIN_TMUX_VERSION")" == "<" ]; then
|
||||
echo -e "ERROR: Tmuxifier requires Tmux v${TMUXIFIER_MIN_TMUX_VERSION}" \
|
||||
"or newer. You have v$(tmuxifier-tmux-version)." >&2
|
||||
"or newer. You have v$(tmuxifier-tmux-version)." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Parse given command
|
||||
command="$1"
|
||||
case "$command" in
|
||||
"" | "-h" | "--help" )
|
||||
"" | "-h" | "--help")
|
||||
echo -e "tmuxifier $(tmuxifier-version)\n$(tmuxifier-help)" >&2
|
||||
;;
|
||||
|
||||
"-v" | "--version" )
|
||||
"-v" | "--version")
|
||||
tmuxifier-version
|
||||
;;
|
||||
|
||||
* )
|
||||
*)
|
||||
! command_path="$(tmuxifier-resolve-command-path "$command")"
|
||||
|
||||
if [ -z "$command_path" ]; then
|
||||
|
||||
Reference in New Issue
Block a user