From 6efd18cba2cc0ae26d573c5c099df0ab519f40e0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Aug 2016 20:35:39 +1200 Subject: Expand and whitelist BASH_VERSINFO check in han(1) --- bash/bashrc | 1 + 1 file changed, 1 insertion(+) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index d2562749..f5ca7c11 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -7,6 +7,7 @@ esac # Ensure we're using at least version 2.05. Weird arithmetic syntax needed here # due to leading zeroes and trailing letters in some 2.x version numbers (e.g. # 2.05a). +# shellcheck disable=SC2128 [ -n "$BASH_VERSINFO" ] || return ((BASH_VERSINFO[0] == 2)) && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) && -- cgit v1.2.3