Skip to content

Commit

Permalink
improve error msg on non supported platforms, issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-lopez committed Nov 3, 2017
1 parent 27a7b24 commit a0283c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tundle
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ if _supported_tmux_version_helper; then
_set_default_key_bindings
_source_plugins
else
_display_message_helper "$(printf "%s\\n" \
"Error, Tmux version unsupported! Please install Tmux version ${SUPPORTED_TMUX_VERSION} or greater!")"
TMUX_VERSION="$(_get_tmux_option_global_helper "TMUX_VERSION")"
if [ -z "$TMUX_VERSION" ]; then
_display_message_helper "$(printf "%s\\n%s\\n" \
"Error, tmux has not -V option available in $(uname -s) $(uname -r), unsupported platform!: https://github.com/javier-lopez/tundle/issues/4")"
else
_display_message_helper "$(printf "%s\\n" \
"Error, tmux version ${TMUX_VERSION} unsupported! Please install tmux version >= ${SUPPORTED_TMUX_VERSION}!")"
fi
exit 1
fi

Expand Down

0 comments on commit a0283c4

Please sign in to comment.