From 64030026fb509f6065cbc9c86b58131f792b2043 Mon Sep 17 00:00:00 2001 From: Gio d'Amelio Date: Wed, 17 Oct 2018 00:12:45 -0700 Subject: [PATCH] Update health check tmux version parse regex This updates the grep regex that parses the tmux version to allow for release candidate versions e.g. `tmux 2.7-rc`. --- scripts/health-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/health-check.sh b/scripts/health-check.sh index bef17cc..c3173b0 100755 --- a/scripts/health-check.sh +++ b/scripts/health-check.sh @@ -111,7 +111,7 @@ function perform_health_check() { local healthy=1 # BASH_VERSION is a global - local TMUX_VERSION=$(tmux -V | grep -Eio "[0-9]+(\.[0-9a-z])*$") + local TMUX_VERSION=$(tmux -V | grep -Eio "([0-9]+(\.[0-9]))(?:-rc)?$") local GAWK_VERSION="" if [[ $(program_exists "gawk") = "1" ]]; then