Skip to content

Commit 0ab6f6b

Browse files
committed
fix: linter
1 parent c9ba457 commit 0ab6f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bashunit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function _check_bash_version() {
1616
current_version="$(bash --version | head -n1 | cut -d' ' -f4 | cut -d. -f1,2)"
1717
fi
1818

19-
local major minor
20-
IFS=. read -r major minor _ <<< "$current_version"
19+
local major
20+
IFS=. read -r major _ _ <<< "$current_version"
2121

2222
if (( major < 3 )); then
2323
printf 'Bashunit requires Bash >= %s. Current version: %s\n' "$BASHUNIT_MIN_BASH_VERSION" "$current_version" >&2

0 commit comments

Comments
 (0)