We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ba457 commit 0ab6f6bCopy full SHA for 0ab6f6b
bashunit
@@ -16,8 +16,8 @@ function _check_bash_version() {
16
current_version="$(bash --version | head -n1 | cut -d' ' -f4 | cut -d. -f1,2)"
17
fi
18
19
- local major minor
20
- IFS=. read -r major minor _ <<< "$current_version"
+ local major
+ IFS=. read -r major _ _ <<< "$current_version"
21
22
if (( major < 3 )); then
23
printf 'Bashunit requires Bash >= %s. Current version: %s\n' "$BASHUNIT_MIN_BASH_VERSION" "$current_version" >&2
0 commit comments