From 542e3039da813d7d211f54b2315325d2504fbe0b Mon Sep 17 00:00:00 2001 From: Serge Tkatchouk Date: Thu, 13 Jun 2024 13:38:54 +0300 Subject: [PATCH] Fix version comparison for iTerm 3.5.0 and newer --- examples/cssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cssh b/examples/cssh index d9f6381..bfeb729 100755 --- a/examples/cssh +++ b/examples/cssh @@ -30,7 +30,7 @@ is_iterm_350() { local _ref="3.5.0" _ver="${TERM_PROGRAM_VERSION:-0.0.0}" \ _newest="" - _newest="$(echo -e "${_ref}\n${_ver}" | sort -V | head -n1)" + _newest="$(echo -e "${_ref}\n${_ver}" | sort -V | tail -n1)" is_iterm && [[ "${_ver}" == "${_newest}" ]] }