From f55a16e8b880685a5a01fe281607824061c459ba Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 17 Nov 2016 10:30:46 -0500 Subject: [PATCH] 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 --- .../scripts/download-build-gdb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/scripts/download-build-gdb.sh b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/scripts/download-build-gdb.sh index 17406454940..806449cf984 100755 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/scripts/download-build-gdb.sh +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/scripts/download-build-gdb.sh @@ -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. ;;