From a7637d4c52e0e68d9bae4597dba4a912a3950319 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 9 Jun 2017 12:27:24 +0200 Subject: [PATCH] Pmodules/modbuild - bugfix: 'local' used in global scope --- Pmodules/modbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modbuild b/Pmodules/modbuild index 9ad83ab..831ad7c 100755 --- a/Pmodules/modbuild +++ b/Pmodules/modbuild @@ -330,7 +330,7 @@ if [[ ${bootstrap} == no ]]; then # if version is not specified, use version from last line of variants file if [[ -z "$V" ]]; then - local tmp=$(awk 'END{print $1}' "${variants_file}") + declare tmp=$(awk 'END{print $1}' "${variants_file}") V="${tmp#*/}" fi else