1
0
Fork 0
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:
Simon Marchi 2016-11-17 10:30:46 -05:00
parent a39620356c
commit f55a16e8b8

View file

@ -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.
;;