mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
gdb build script: Add missing local variable in check_supported
We use the $version variable in the check_supported function, but it is not set. It happens to work because we use the same variable name in the outer scope, where check_supported is called. Change-Id: I75e8ae4ef42a232174accf88ca146c0e427f8d4e Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
parent
a39620356c
commit
f55a16e8b8
1 changed files with 2 additions and 1 deletions
|
@ -79,9 +79,10 @@ function echo_header() {
|
|||
# $1: version number
|
||||
function check_supported() {
|
||||
local supported_pattern="@(${default_versions// /|})"
|
||||
local version="$1"
|
||||
|
||||
shopt -s extglob
|
||||
case "$version" in
|
||||
case "$version" in
|
||||
${supported_pattern})
|
||||
# Supported, do nothing.
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue